Module manifest

Module manifest 

Source
Expand description

Provides functionality for resolving and managing Cargo manifests.

Structs§

Manifest
The top-level Cargo.toml structure. This is the main type in this library.
Profile
Compilation/optimization settings for a workspace
Profiles
Build-in an custom build/optimization settings

Enums§

Dependency
Dependency definition. Note that this struct doesn’t carry it’s key/name, which you need to read from its section.
LtoSetting
Handling of LTO in a build profile

Functions§

add_crate_to_workspace
This function is used to add a crate to a workspace.
add_feature
Add a new feature to the Cargo.toml manifest if it doesn’t already exist.
add_production_profile
Adds a “production” profile to the Cargo.toml manifest if it doesn’t already exist.
find_workspace_toml
This function is used to determine if a Path is contained inside a workspace, and returns a PathBuf to the workspace Cargo.toml if found.
from_path
Parses the contents of a Cargo.toml manifest.