CodeQL library for Rust
codeql/rust-all 0.2.6 (changelog, source)
Search

Member predicate Impl::Crate::getDependency

Gets the dependency named name, if any.

name may be different from the name of the crate, when the dependency has been renamed in the Cargo.toml file, for example in

[dependencies]
my_serde = {package = "serde", version = "1.0.217"}

the name of the dependency is my_serde, but the name of the crate is serde.

Crate getDependency(string name)