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ยง
- MAX_
FEATURE_ ๐PRINTS
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 ๐