MAN page from OpenSuSE cargo-1.31.1-186.1.x86_64.rpm
CARGO\-RUN
Section: Cargo Manual (1)
Updated: May 2016
Index NAME
cargo-run - Run the current package
SYNOPSIS
I]cargo run] [OPTIONS] [--] [<ARGS>...]
DESCRIPTION
Run the main binary of the local package (src/main.rs).
If neither B]--bin] nor B]--example] are given, then ifthe package only has one bin target it will be run.Otherwise B]--bin] specifies the bin target to run, andB]--example] specifies the example target to run.At most one of B]--bin] or B]--example] can be provided.
All of the trailing arguments are passed to the binary to run.If you[aq]re passing arguments to both Cargo and the binary, the onesafter B]--] go to the binary, the ones before go to Cargo.
OPTIONS
- -h, --help
- Print this message.
- --bin I]NAME]
- Name of the bin target to run.
- --example I]NAME]
- Name of the example target to run.
- -j I]IN], --jobs I]IN]
- Number of parallel jobs, defaults to # of CPUs.
- --release
- Build artifacts in release mode, with optimizations.
- --features I]FEATURES]
- Space-separated list of features to also build.
- --all-features
- Build all available features.
- --no-default-features
- Do not build the C]default] feature.
- --target I]TRIPLE]
- Build for the target triple.
- --manifest-path I]PATH]
- Path to the Cargo.toml to compile.
- -v, --verbose
- Use verbose output.
- -q, --quiet
- No output printed to stdout.
- --color I]WHEN]
- Coloring: auto, always, never.
EXAMPLES
Run the main binary of the current package
C]$ cargo run]
SEE ALSO
cargo(1), cargo-new(1), cargo-init(1), cargo-build(1)
COPYRIGHT
This work is dual-licensed under Apache 2.0 and MIT terms.See I]COPYRIGHT] file in the cargo source distribution.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- EXAMPLES
- SEE ALSO
- COPYRIGHT
This document was created byman2html,using the manual pages.