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_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.
from_path
Parses the contents of a Cargo.toml manifest.
get_workspace_project_names
Get the names and paths of all cargo projects that are associated with a workspace manifest.