Crate cargo_metadata [−] [src]
Structured access to the output of cargo metadata
Usually used from within a cargo-* executable
let manifest_path_arg = std::env::args().skip(2).find(|val| val.starts_with("--manifest-path=")); let metadata = cargo_metadata::metadata(manifest_path_arg.as_ref().map(AsRef::as_ref)).unwrap();
Structs
| Dependency |
A dependency of the main crate |
| Metadata |
Starting point for metadata returned by |
| Node |
A node in a dependencies graph |
| Package |
A crate |
| Resolve |
A dependency graph |
| Target |
A single target (lib, bin, example, ...) provided by a crate |
Enums
| Error |
Possible errors that can occur during metadata parsing. |
Functions
| metadata |
Obtain metadata only about the root package and don't fetch dependencies |
| metadata_deps |
The main entry point to obtaining metadata |