Struct maturin::CargoOptions
source · [−]pub struct CargoOptions {Show 20 fields
pub quiet: bool,
pub jobs: Option<usize>,
pub profile: Option<String>,
pub features: Vec<String>,
pub all_features: bool,
pub no_default_features: bool,
pub target: Option<String>,
pub target_dir: Option<PathBuf>,
pub manifest_path: Option<PathBuf>,
pub ignore_rust_version: bool,
pub verbose: usize,
pub color: Option<String>,
pub frozen: bool,
pub locked: bool,
pub offline: bool,
pub config: Vec<String>,
pub unstable_flags: Vec<String>,
pub timings: Option<Vec<String>>,
pub future_incompat_report: bool,
pub args: Vec<String>,
}
Expand description
Cargo options for the build process
Fields
quiet: bool
Do not print cargo log messages
jobs: Option<usize>
Number of parallel jobs, defaults to # of CPUs
profile: Option<String>
Build artifacts with the specified Cargo profile
features: Vec<String>
Space or comma separated list of features to activate
all_features: bool
Activate all available features
no_default_features: bool
Do not activate the default
feature
target: Option<String>
Build for the target triple
target_dir: Option<PathBuf>
Directory for all generated artifacts
manifest_path: Option<PathBuf>
Path to Cargo.toml
ignore_rust_version: bool
Ignore rust-version
specification in packages
verbose: usize
Use verbose output (-vv very verbose/build.rs output)
color: Option<String>
Coloring: auto, always, never
frozen: bool
Require Cargo.lock and cache are up to date
locked: bool
Require Cargo.lock is up to date
offline: bool
Run without accessing the network
config: Vec<String>
Override a configuration value (unstable)
unstable_flags: Vec<String>
Unstable (nightly-only) flags to Cargo, see ‘cargo -Z help’ for details
timings: Option<Vec<String>>
Timing output formats (unstable) (comma separated): html, json
future_incompat_report: bool
Outputs a future incompatibility report at the end of the build (unstable)
args: Vec<String>
Rustc flags
Trait Implementations
sourceimpl Args for CargoOptions
impl Args for CargoOptions
sourceimpl Clone for CargoOptions
impl Clone for CargoOptions
sourcefn clone(&self) -> CargoOptions
fn clone(&self) -> CargoOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl CommandFactory for CargoOptions
impl CommandFactory for CargoOptions
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for CargoOptions
impl Debug for CargoOptions
sourceimpl Default for CargoOptions
impl Default for CargoOptions
sourcefn default() -> CargoOptions
fn default() -> CargoOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CargoOptions where
CargoOptions: Default,
impl<'de> Deserialize<'de> for CargoOptions where
CargoOptions: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<CargoOptions> for Rustc
impl From<CargoOptions> for Rustc
sourcefn from(cargo: CargoOptions) -> Self
fn from(cargo: CargoOptions) -> Self
Converts to this type from the input type.
sourceimpl FromArgMatches for CargoOptions
impl FromArgMatches for CargoOptions
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn 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>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn 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
.
sourcefn 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
.
sourceimpl Parser for CargoOptions
impl Parser for CargoOptions
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
sourceimpl PartialEq<CargoOptions> for CargoOptions
impl PartialEq<CargoOptions> for CargoOptions
sourcefn eq(&self, other: &CargoOptions) -> bool
fn eq(&self, other: &CargoOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CargoOptions) -> bool
fn ne(&self, other: &CargoOptions) -> bool
This method tests for !=
.
sourceimpl Serialize for CargoOptions
impl Serialize for CargoOptions
impl Eq for CargoOptions
impl StructuralEq for CargoOptions
impl StructuralPartialEq for CargoOptions
Auto Trait Implementations
impl RefUnwindSafe for CargoOptions
impl Send for CargoOptions
impl Sync for CargoOptions
impl Unpin for CargoOptions
impl UnwindSafe for CargoOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more