mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00

This mirrors some of the categories from `cargo help` (the man pages). There are fewer categories to avoid extra vertical space. Instead, they are left int the `Options` category but put first.
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
Remove dependencies from a Cargo.toml manifest file
|
|
|
|
Usage: cargo[EXE] remove [OPTIONS] <DEP_ID>...
|
|
|
|
Arguments:
|
|
<DEP_ID>... Dependencies to be removed
|
|
|
|
Options:
|
|
--dry-run Don't actually write the manifest
|
|
-q, --quiet Do not print cargo log messages
|
|
-v, --verbose... Use verbose output (-vv very verbose/build.rs output)
|
|
--color <WHEN> Coloring: auto, always, never
|
|
--config <KEY=VALUE> Override a configuration value
|
|
-Z <FLAG> Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
|
|
-h, --help Print help
|
|
|
|
Section:
|
|
--dev Remove as development dependency
|
|
--build Remove as build dependency
|
|
--target <TARGET> Remove as dependency from the given target platform
|
|
|
|
Package Selection:
|
|
-p, --package [<SPEC>] Package to remove from
|
|
|
|
Manifest Options:
|
|
--manifest-path <PATH> Path to Cargo.toml
|
|
--frozen Require Cargo.lock and cache are up to date
|
|
--locked Require Cargo.lock is up to date
|
|
--offline Run without accessing the network
|