Module cargo

Source

Modules§

build
deploy
profile
watch

Structs§

CargoMetadata
Starting point for metadata returned by cargo metadata
CargoPackage
One or more crates described by a single Cargo.toml
CargoTarget
A single target (lib, bin, example, …) provided by a crate
LambdaMetadata
Metadata
PackageMetadata

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