CARGO-RUN(1) General Commands Manual CARGO-RUN(1) (NAME) cargo-run - Rust (SYNOPSIS) cargo run [] [-- ] (DESCRIPTION) () . (--) . Cargo -- Cargo . cargo-test(1) cargo-bench(1) cargo run . (OPTIONS) (Package Selection) . -p (workspace) . -p spec, --package spec . SPEC cargo-pkgid(1) . (Target Selection) cargo run . . default-run [package] Cargo.toml . --bin name . --example name . (Feature Selection) . default . . -F features, --features features . package-name/feature-name . . --all-features . --no-default-features default . (Compilation Options) --target triple . (host) . (triple) --- . : o rustc --print target-list. o "host-tuple" . (cross-compiling) ( xtask ). o . Custom Target Lookup Path . build.target config . Cargo . build cache . -r, --release release. --profile . --profile name . . --timings . cargo-timing.html target/cargo-timings . . . (Output Options) --target-dir directory . CARGO_TARGET_DIR build.target-dir config . target . (Display Options) -v, --verbose . . term.verbose config . -q, --quiet cargo. term.quiet config . --color when . : o auto (): . o always: . o never: . term.color config . --message-format fmt (diagnostics). . : o human (): . short json . o short: . human json . o json: JSON (stdout). . human short . o json-diagnostic-short: rendered JSON (short) rustc . human short . o json-diagnostic-rendered-ansi: rendered JSON ANSI rustc . human short . o json-render-diagnostics: Cargo rustc JSON Cargo JSON rustc . JSON Cargo . human short . (Manifest Options) --manifest-path path Cargo.toml. Cargo Cargo.toml . --ignore-rust-version rust-version . --locked Cargo.lock . Cargo : o lock . o Cargo lock . CI . --offline Cargo . Cargo . Cargo . . Cargo . cargo-fetch(1) . net.offline config . --frozen --locked --offline . (Common Options) +toolchain Cargo rustup cargo + (toolchain) rustup ( +stable +nightly) . rustup . --config KEY=VALUE PATH Cargo . TOML KEY=VALUE . . . -C PATH . cargo (Cargo.toml) .cargo/config.toml . : cargo -C path/to/my-project build. nightly -Z unstable-options ( #10098 ). -h, --help . -Z flag ( nightly) Cargo. cargo -Z help . (Miscellaneous Options) -j N, --jobs N . build.jobs config . . . default . 0 . --keep-going . fails works cargo run -j1 ( Cargo ) cargo run -j1 --keep-going . (ENVIRONMENT) Cargo . (EXIT STATUS) o 0: Cargo . o 101: Cargo . (EXAMPLES) 1. ( ): cargo run 2. : cargo run --example exname -- --exoption exarg1 exarg2 (SEE ALSO) cargo(1), cargo-build(1) CARGO-RUN(1)