cargo add  <DEP_ID...>
Add dependencies to a Cargo.toml manifest file
Arguments
Options
| Name | Description | 
|---|
--no-default-features | Disable the default features | 
--default-features | Re-enable the default features | 
-F, --features | Space or comma separated list of features to activate | 
--optional | Mark the dependency as optional | 
-v, --verbose | Use verbose output | 
--no-optional | Mark the dependency as required | 
--color  <WHEN> |  | 
--rename  <NAME> | Rename the dependency | 
--frozen | Require Cargo.lock and cache are up to date | 
--manifest-path | Path to Cargo.toml | 
--locked | Require Cargo.lock is up to date | 
-p, --package  <SPEC> | Package to modify | 
--offline | Run without accessing the network | 
-q, --quiet | Do not print cargo log messages | 
--dry-run | Don't actually write the manifest | 
-h, --help | Print help information | 
--path  <PATH> | Filesystem path to local crate to add | 
--git  <URI> | Git repository location | 
--branch  <BRANCH> | Git branch to download the crate from | 
--tag  <TAG> | Git tag to download the crate from | 
--rev  <REV> | Git reference to download the crate from | 
--registry  <NAME> | Package registry for this dependency | 
--dev | Add as development dependency | 
--build | Add as build dependency | 
--target  <TARGET> | Add as dependency to the given target platform |