Expand description
Core of cargo-add command
Modules§
- crate_
spec 🔒 - Crate name parsing.
Structs§
- AddOptions
- Information on what dependencies should be added
- DepOp
- Dependency entry operation
- DependencyUI
- Track presentation-layer information with the editable representation of a
[dependencies]
entry (Dependency)
Constants§
Functions§
- add
- Add dependencies to a manifest
- check_
invalid_ 🔒ws_ keys - 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
, orpackage
. You can also not definedefault-features
. - check_
rust_ 🔒version_ for_ optional_ dependency - When the
--optional
option is added usingcargo add
, we need to check the current rust-version. As thedep:
syntax is only available starting with Rust 1.60.0 - find_
workspace_ 🔒dep - format_
features_ 🔒version_ suffix - fuzzy_
lookup 🔒 - get_
existing_ 🔒dependency - Provide the existing dependency for the target table
- get_
latest_ 🔒dependency - infer_
package_ 🔒for_ git_ source - latest_
compatible 🔒 - Of MSRV-compatible summaries, find the highest version
- populate_
available_ 🔒features - Lookup available features
- populate_
dependency 🔒 - precise_
version 🔒 - Convert a
semver::VersionReq
into a renderedsemver::Version
if all fields are fully specified. - print_
action_ 🔒msg - print_
dep_ 🔒table_ msg - resolve_
dependency 🔒 - select_
package 🔒