Struct cargo_options::Rustc
source · pub struct Rustc {Show 20 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 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 print: Option<String>,
pub crate_type: Vec<String>,
pub future_incompat_report: bool,
pub args: Vec<String>,
}
Expand description
Compile a package, and pass extra options to the compiler
Fields§
§common: CommonOptions
§manifest_path: Option<PathBuf>
Path to Cargo.toml
release: bool
Build artifacts in release mode, with optimizations
ignore_rust_version: bool
Ignore rust-version
specification in packages
unit_graph: bool
Output build graph in JSON (unstable)
packages: Vec<String>
Package to build (see cargo help pkgid
)
lib: bool
Build only this package’s library
bin: Vec<String>
Build only the specified binary
bins: bool
Build all binaries
example: Vec<String>
Build only the specified example
examples: bool
Build all examples
test: Vec<String>
Build only the specified test target
tests: bool
Build all tests
bench: Vec<String>
Build only the specified bench target
benches: bool
Build all benches
all_targets: bool
Build all targets
print: Option<String>
Output compiler information without compiling
crate_type: Vec<String>
Comma separated list of types of crates for the compiler to emit
future_incompat_report: bool
Outputs a future incompatibility report at the end of the build (unstable)
args: Vec<String>
Rustc flags
Implementations§
Methods from Deref<Target = CommonOptions>§
Trait Implementations§
source§impl CommandFactory for Rustc
impl CommandFactory for Rustc
source§impl FromArgMatches for Rustc
impl FromArgMatches for Rustc
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>
Assign values from
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>
Assign values from
ArgMatches
to self
.source§impl Parser for Rustc
impl Parser for Rustc
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
Auto Trait Implementations§
impl Freeze for Rustc
impl RefUnwindSafe for Rustc
impl Send for Rustc
impl Sync for Rustc
impl Unpin for Rustc
impl UnwindSafe for Rustc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more