{{*set actionverb="Remove"}} {{*set nouns="removes"}}
cargo-remove - Remove dependencies from a Cargo.toml manifest file
cargo remove
[options] dependency...
Remove one or more dependencies from a Cargo.toml
manifest.
{{#options}}
{{#option "--dev
" }}
Remove as a development dependency.
{{/option}}
{{#option "--build
" }}
Remove as a build dependency.
{{/option}}
{{#option "--target
target" }}
Remove as a dependency to the given target platform.
{{/option}}
{{/options}}
{{#options}}
{{#option "--dry-run
" }}
Don't actually write to the manifest.
{{/option}}
{{/options}}
{{#options}} {{> options-display }} {{/options}}
{{#options}} {{> options-manifest-path }}
{{> options-locked }} {{/options}}
{{#options}}
{{#option "-p
spec..." "--package
spec..." }}
Package to remove from.
{{/option}}
{{/options}}
{{> section-options-common }}
{{> section-environment }}
{{> section-exit-status }}
-
Remove
regex
as a dependencycargo remove regex
-
Remove
trybuild
as a dev-dependencycargo remove --dev trybuild
-
Remove
nom
from thex86_64-pc-windows-gnu
dependencies tablecargo remove --target x86_64-pc-windows-gnu nom
{{man "cargo" 1}}, {{man "cargo-add" 1}}