Expand description
Show and Edit Cargo’s Manifest Files
Structs§
- CliError
- The CLI error is the error type used at Cargo’s CLI-layer.
- Dependency
- A dependency handled by Cargo
- Local
Manifest - A Cargo manifest that is available locally.
- Manifest
- A Cargo manifest
Enums§
- Color
Choice - ColorChoice represents the color preferences of an end user.
- Crate
Spec - User-specified crate
Traits§
- Context
- Provides the
context
method forResult
. - Version
Ext - Additional version functionality
Functions§
- colorize_
stderr - Whether to color logged output
- find
- If a manifest is specified, return that one, otherise perform a manifest search starting from
the current directory.
If a manifest is specified, return that one. If a path is specified, perform a manifest search
starting from there. If nothing is specified, start searching from the current directory
(
cwd
). - get_
features_ from_ registry - Get crate features from registry
- get_
latest_ dependency - Query latest version from a registry index
- get_
manifest_ from_ path - Load Cargo.toml in a local path
- get_
manifest_ from_ url - Load Cargo.toml from github repo Cargo.toml
- manifest_
from_ pkgid - Takes a pkgid and attempts to find the path to it’s
Cargo.toml
, usingcargo
’s metadata - registry_
url - Find the URL of a registry
- update_
registry_ index - update registry index for given project
- upgrade_
requirement - Upgrade an existing requirement to a new version
- workspace_
members - Lookup all members of the current workspace
Type Aliases§
- Cargo
Result - Common result type
- CliResult
- CLI-specific result
- Error
- Common error type