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
, orpackage
. You can also not definedefault-features
. - 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 - Provide the existing dependency for the target table
- latest_
compatible ๐Of MSRV-compatible summaries, find the highest version - Lookup available features
- populate_
dependency ๐ - precise_
version ๐Convert asemver::VersionReq
into a renderedsemver::Version
if all fields are fully specified. - print_
action_ ๐msg - print_
dep_ ๐table_ msg - resolve_
dependency ๐ - select_
package ๐