cargo-remove(1)

NAME

cargo-remove --- Remove dependencies from a Cargo.toml manifest file

SYNOPSIS

cargo remove [options] dependency...

DESCRIPTION

Remove one or more dependencies from a Cargo.toml manifest.

OPTIONS

Section options

Miscellaneous Options

Display Options

Manifest Options

Package Selection

Common Options

ENVIRONMENT

See the reference for details on environment variables that Cargo reads.

EXIT STATUS

  • 0: Cargo succeeded.
  • 101: Cargo failed to complete.

EXAMPLES

  1. Remove regex as a dependency

    cargo remove regex
    
  2. Remove trybuild as a dev-dependency

    cargo remove --dev trybuild
    
  3. Remove nom from the x86_64-pc-windows-gnu dependencies table

    cargo remove --target x86_64-pc-windows-gnu nom
    

SEE ALSO

cargo(1), cargo-add(1)