## Module cargo_add

Source
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`, or `package`. You can also not define `default-features`.
check_rust_version_for_optional_dependency 🔒
  When the `--optional` option is added using `cargo add`, we need to check the current rust-version. As the `dep:` 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 🔒
get_public_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 rendered `semver::Version` if all fields are fully specified.
print_action_msg 🔒
print_dep_table_msg 🔒
query_dependency 🔒
resolve_dependency 🔒
select_package 🔒