cargo-build

Compile a local package and all of its dependencies.

TLDR

Build the package or packages defined by the Cargo.toml manifest file in the local path

$ cargo build
copy

Build artifacts in release mode, with optimizations

$ cargo build --release
copy

Require that Cargo.lock is up to date

$ cargo build --locked
copy

Build all packages in the workspace

$ cargo build --workspace
copy

Build a specific package

$ cargo build --package [package]
copy

Build only the specified binary

$ cargo build --bin [name]
copy

Build only the specified test target

$ cargo build --test [testname]
copy

Copied to clipboard
free 100$ digital ocean credit