Crate cargo_edit_9

Source
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
LocalManifest
A Cargo manifest that is available locally.
Manifest
A Cargo manifest

Enums§

ColorChoice
ColorChoice represents the color preferences of an end user.
CrateSpec
User-specified crate

Traits§

Context
Provides the context method for Result.
VersionExt
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, using cargo’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§

CargoResult
Common result type
CliResult
CLI-specific result
Error
Common error type