cargo add

Add dependencies to a Rust project's Cargo.toml manifest. More information: https://doc.rust-lang.org/cargo/commands/cargo-add.html.

cargo add {{dependency}}

cargo add {{dependency}}@{{version}}

cargo add {{dependency}} --features {{feature_1}},{{feature_2}}

cargo add {{dependency}} --optional

cargo add --path {{path/to/crate_directory}}

cargo add {{dependency}} --{{dev|build}}

cargo add {{dependency}} --no-default-features