#add #cargo #deprecated #cargo-command #command-line #toml #flags

deprecated app cargo-add

Add dependencies to your Cargo.toml from the command line (deprecated in favor of cargo-edit)

2 unstable releases

Uses old Rust 2015

0.2.0 Feb 18, 2017
0.1.0 Jun 18, 2015

#72 in #cargo-command

Download history 13/week @ 2024-01-01 13/week @ 2024-01-22 8/week @ 2024-01-29 5/week @ 2024-02-12 13/week @ 2024-02-19 14/week @ 2024-02-26 5/week @ 2024-03-04 15/week @ 2024-03-11 6/week @ 2024-03-18 6/week @ 2024-03-25 32/week @ 2024-04-01

60 downloads per month

Apache-2.0/MIT

8KB
139 lines

#cargo add

This crate is deprecated in favor of cargo-edit.

This tool extends the behavior of cargo to allow you to add dependencies to your Cargo.toml from the command line. It is very simple to install and use.

###Installation

You can build cargo-add from the source, available through GitHub or in the repository at crates.io. Once you have an executable, you can move it to a directory in your PATH, and the cargo add command will now work.

###Use

See cargo add -h for a full description of use. By default, cargo add will add a wildcard dependency for the crate; you can add multiple such wildcard dependencies at once by listening them one by one (e.g. cargo add serde libc time will add all three crates). You can also use a flag to add a crate pegged to a specific version string, or dependent on another source accepted by cargo other than the registry (e.g. git or local dependencies).

Dependencies

~4MB
~87K SLoC