Struct cargo_modules::options::project::Options [−][src]
pub struct Options {
pub lib: bool,
pub bin: Option<String>,
pub package: Option<String>,
pub no_default_features: bool,
pub all_features: bool,
pub features: Vec<String>,
pub target: Option<String>,
pub cfg_test: bool,
pub with_sysroot: bool,
pub manifest_path: PathBuf,
}Fields
lib: boolProcess only this package’s library.
bin: Option<String>Process only the specified binary.
package: Option<String>Package to process (see cargo help pkgid).
no_default_features: boolDo not activate the default feature.
all_features: boolActivate all available features.
features: Vec<String>List of features to activate.
This will be ignored if --cargo-all-features is provided.
target: Option<String>Analyze for target triple.
cfg_test: boolAnalyze with #[cfg(test)] enabled.
with_sysroot: boolInclude sysroot crates (std, core & friends) in analysis.
manifest_path: PathBufPath to Cargo.toml.
Trait Implementations
Builds the struct from clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic. Read more
Builds the struct from the command line arguments (std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more
Builds the struct from the command line arguments (std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for Options
impl UnwindSafe for Options
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U using CastTo.
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
