Forrest logo
back to context overview

cargo-add

List of commands for cargo-add:

  • cargo-add:tldr:1f337 cargo-add: Add a dependency and enable one or more specific features.
    $ cargo add ${dependency} --features ${feature_1},${feature_2}
    try on your machine
    explain this command
  • cargo-add:tldr:371d4 cargo-add: Add a development or build dependency.
    $ cargo add ${dependency} --${select}
    try on your machine
    explain this command
  • cargo-add:tldr:4e610 cargo-add: Add the latest version of a dependency to the current project.
    $ cargo add ${dependency}
    try on your machine
    explain this command
  • cargo-add:tldr:58df0 cargo-add: Add a local crate as a dependency.
    $ cargo add --path ${path-to-crate}
    try on your machine
    explain this command
  • cargo-add:tldr:97ac4 cargo-add: Add a dependency with all default features disabled.
    $ cargo add ${dependency} --no-default-features
    try on your machine
    explain this command
  • cargo-add:tldr:ca754 cargo-add: Add a specific version of a dependency.
    $ cargo add ${dependency}@${version}
    try on your machine
    explain this command
  • cargo-add:tldr:ec1bc cargo-add: Add an optional dependency, which then gets exposed as a feature of the crate.
    $ cargo add ${dependency} --optional
    try on your machine
    explain this command
back to context overview