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.