pub struct Build {Show 22 fields
pub common: CommonOptions,
pub manifest_path: Option<PathBuf>,
pub release: bool,
pub ignore_rust_version: bool,
pub unit_graph: bool,
pub packages: Vec<String>,
pub workspace: bool,
pub exclude: Vec<String>,
pub all: bool,
pub lib: bool,
pub bin: Vec<String>,
pub bins: bool,
pub example: Vec<String>,
pub examples: bool,
pub test: Vec<String>,
pub tests: bool,
pub bench: Vec<String>,
pub benches: bool,
pub all_targets: bool,
pub artifact_dir: Option<PathBuf>,
pub build_plan: bool,
pub future_incompat_report: bool,
}Expand description
Compile a local package and all of its dependencies
Fields§
§common: CommonOptions§manifest_path: Option<PathBuf>Path to Cargo.toml
release: boolBuild artifacts in release mode, with optimizations
ignore_rust_version: boolIgnore rust-version specification in packages
unit_graph: boolOutput build graph in JSON (unstable)
packages: Vec<String>Package to build (see cargo help pkgid)
workspace: boolBuild all packages in the workspace
exclude: Vec<String>Exclude packages from the build
all: boolAlias for workspace (deprecated)
lib: boolBuild only this package’s library
bin: Vec<String>Build only the specified binary
bins: boolBuild all binaries
example: Vec<String>Build only the specified example
examples: boolBuild all examples
test: Vec<String>Build only the specified test target
tests: boolBuild all tests
bench: Vec<String>Build only the specified bench target
benches: boolBuild all benches
all_targets: boolBuild all targets
artifact_dir: Option<PathBuf>Copy final artifacts to this directory (unstable)
build_plan: boolOutput the build plan in JSON (unstable)
future_incompat_report: boolOutputs a future incompatibility report at the end of the build (unstable)
Implementations§
Methods from Deref<Target = CommonOptions>§
Trait Implementations§
Source§impl Args for Build
impl Args for Build
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Build
impl CommandFactory for Build
Source§impl FromArgMatches for Build
impl FromArgMatches for Build
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.