Modules§
Structs§
- Cargo
Metadata - Starting point for metadata returned by
cargo metadata - Cargo
Package - One or more crates described by a single
Cargo.toml - Cargo
Target - A single target (lib, bin, example, …) provided by a crate
- Lambda
Metadata - Metadata
- Package
Metadata
Functions§
- binary_
targets - Extract all the binary target names from a Cargo.toml file
- binary_
targets_ from_ metadata - cargo_
release_ profile_ config - Attempt to read the release profile section in the Cargo manifest. Cargo metadata doesn’t expose profile information, so we try to read it from the Cargo.toml file directly.
- filter_
binary_ targets - Extract all the binary target names from a Cargo.toml file
- filter_
binary_ targets_ from_ metadata - kind_
bin_ filter - kind_
example_ filter - load_
metadata - Create metadata about the root package in the Cargo manifest, without any dependencies.
- main_
binary_ from_ metadata - Load the main binary in the project. It returns an error if the project includes from than one binary. Use this function when the user didn’t provide any funcion name assuming that there is only one binary in the project
- selected_
bin_ filter - target_
dir_ from_ metadata - Extract target directory information