Forrest logo
back to context overview

cargo-build

List of commands for cargo-build:

  • cargo-build:tldr:15d47 cargo-build: Require that `Cargo.lock` is up to date.
    $ cargo build --locked
    try on your machine
    explain this command
  • cargo-build:tldr:348e1 cargo-build: Build a specific package.
    $ cargo build --package ${package}
    try on your machine
    explain this command
  • cargo-build:tldr:5bdd3 cargo-build: Build only the specified test target.
    $ cargo build --test ${testname}
    try on your machine
    explain this command
  • cargo-build:tldr:92604 cargo-build: Build artifacts in release mode, with optimizations.
    $ cargo build --release
    try on your machine
    explain this command
  • cargo-build:tldr:9b21d cargo-build: Build the package or packages defined by the `Cargo.toml` manifest file in the local path.
    $ cargo build
    try on your machine
    explain this command
  • cargo-build:tldr:b5f96 cargo-build: Build only the specified binary.
    $ cargo build --bin ${name}
    try on your machine
    explain this command
  • cargo-build:tldr:e3db4 cargo-build: Build all packages in the workspace.
    $ cargo build --workspace
    try on your machine
    explain this command
back to context overview