Module cargo::ops::cargo_add

source ·
Expand description

Core of cargo-add command

Modules

crate_spec 🔒
Crate name parsing.

Structs

Information on what dependencies should be added
Dependency entry operation
Track presentation-layer information with the editable representation of a [dependencies] entry (Dependency)

Functions

Add dependencies to a manifest
When { workspace = true } you cannot define other keys that configure the source of the dependency such as version, registry, registry-index, path, git, branch, tag, rev, or package. You can also not define default-features.
Provide the existing dependency for the target table
is_sorted 🔒
Lookup available features
Convert a semver::VersionReq into a rendered semver::Version if all fields are fully specified.