Expand description
Core of cargo-add command
Modules§
- 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
--optionaloption is added usingcargo add, we need to check the current rust-version. As thedep:syntax is only available starting with Rust 1.60.0 - Provide the existing dependency for the target table
- Of MSRV-compatible summaries, find the highest version
- Lookup available features
- Convert a
semver::VersionReqinto a renderedsemver::Versionif all fields are fully specified.