MAN page from openSUSE Leap 42 cargo-1.31.1-186.1.x86_64.rpm
CARGO\-RUSTC
Section: Cargo Manual (1)
Updated: July 2016
Index NAME
cargo-rustc - Compile a package and all of its dependencies
SYNOPSIS
I]cargo rustc] [OPTIONS] [--] [<OPTS>...]
DESCRIPTION
The specified target for the current package (or package specified bySPEC if provided) will be compiled along with all of its dependencies.The specified ...will all be passed to the final compiler invocation, not any of thedependencies.Note that the compiler will still unconditionally receive arguments suchas -L, --extern, and --crate-type, and the specified ...will simply be added to the compiler invocation.
This command requires that only one target is being compiled.If more than one target is available for the current package the filtersof --lib, --bin, etc, must be used to select which target iscompiled.To pass flags to all compiler processes spawned by Cargo, use the$RUSTFLAGS environment variable or the C]build.rustflags]configuration option.
OPTIONS
- -h, --help
- Print this message.
- -p I]SPEC], --package SPEC]
- The profile to compiler for.
- -j I]N], --jobs I]N]
- Number of parallel jobs, defaults to # of CPUs.
- --lib
- Build only this package[aq]s library.
- --bin I]NAME]
- Build only the specified binary.
- --example I]NAME]
- Build only the specified example.
- --test I]NAME]
- Build only the specified test target.
- --bench I]NAME]
- Build only the specified benchmark target.
- --release
- Build artifacts in release mode, with optimizations.
- --profile I]PROFILE
- Profile to build the selected target for.
- --features I]FEATURES]
- The version to yank or un-yank.
- --all-features
- Build all available features.
- --no-default-features
- Do not compile default features for the package.
- --target I]TRIPLE]
- Target triple which compiles will be for.
- --manifest-path I]PATH]
- Path to the manifest to fetch dependencies for.
- -v, --verbose
- Use verbose output.
- -q, --quiet
- No output printed to stdout.
- --color I]WHEN]
- Coloring: auto, always, never.
SEE ALSO
cargo(1), cargo-run(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
- SEE ALSO
- COPYRIGHT
This document was created byman2html,using the manual pages.