CmdID

CmdID / Commands

cargo-add

Add dependencies to a Rust project's Cargo.toml manifest. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Add the latest version of a dependency to the current project

cargo add dependencyIdentify

Add a specific version of a dependency

cargo add dependency@versionIdentify

Add a dependency and enable one or more specific features

cargo add dependency --features feature_1,feature_2,...Identify

Add an optional dependency, which then gets exposed as a feature of the crate

cargo add dependency --optionalIdentify

Add a local crate as a dependency

cargo add --path path/to/crate_directoryIdentify

Add a development or build dependency

cargo add dependency --devIdentify

Add a dependency with all default features disabled

cargo add dependency --no-default-featuresIdentify