MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / discover_dependencies

Function discover_dependencies

xtask/src/extension_catalog.rs:1260–1269  ·  view source on GitHub ↗
(id: &str, control: Option<&ControlMetadata>)

Source from the content-addressed store, hash-verified

1258}
1259
1260fn discover_dependencies(id: &str, control: Option<&ControlMetadata>) -> Vec<String> {
1261 let mut dependencies = BTreeSet::new();
1262 if let Some(control) = control {
1263 dependencies.extend(control.requires.iter().cloned());
1264 }
1265 if id == "earthdistance" {
1266 dependencies.insert("cube".to_owned());
1267 }
1268 dependencies.into_iter().collect()
1269}
1270
1271fn discover_native_module_file(
1272 id: &str,

Callers 1

discover_catalogFunction · 0.85

Calls 2

iterMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected