MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / from_metadata

Method from_metadata

atomic-core/src/pristine/capability.rs:89–94  ·  view source on GitHub ↗
(key: &str, minimum_version: u32)

Source from the content-addressed store, hash-verified

87
88impl RequiredRepositoryCapability {
89 pub(crate) fn from_metadata(key: &str, minimum_version: u32) -> Option<Self> {
90 key.strip_prefix(REQUIRED_CAPABILITY_PREFIX).map(|id| Self {
91 id: id.to_string(),
92 minimum_version,
93 })
94 }
95}
96
97/// A requirement unsupported by the current Atomic build.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected