Skip to main content

dependencies

Function dependencies 

Source
pub fn dependencies(manifest: &str) -> Vec<String>
Expand description

The names of the normal and the build dependencies of manifest, also those of a target. Not its dev dependencies.

let manifest = "[package]\nname = \"a\"\n\n[dependencies]\nb.workspace = true\n\
    c = { path = \"../c\" }\n\n[dev-dependencies]\nd = \"1\"\n\n\
    [target.'cfg(unix)'.dependencies]\ne = \"1\"\n\n[dependencies.f]\nversion = \"1\"\n";
assert_eq!(hygiene::terminal::dependencies(manifest), ["b", "c", "e", "f"]);