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: u8,
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: u8
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
Implementations§
source§impl CargoOptions
impl CargoOptions
sourcepub fn merge_with_pyproject_toml(
&mut self,
tool_maturin: ToolMaturin
) -> Vec<&'static str>
pub fn merge_with_pyproject_toml( &mut self, tool_maturin: ToolMaturin ) -> Vec<&'static str>
Merge options from pyproject.toml
Trait Implementations§
source§impl Args for CargoOptions
impl Args for CargoOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for CargoOptions
impl Clone for CargoOptions
source§fn clone(&self) -> CargoOptions
fn clone(&self) -> CargoOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl CommandFactory for CargoOptions
impl CommandFactory for CargoOptions
source§impl Debug for CargoOptions
impl Debug for CargoOptions
source§impl Default for CargoOptions
impl Default for CargoOptions
source§fn default() -> CargoOptions
fn default() -> CargoOptions
source§impl<'de> Deserialize<'de> for CargoOptionswhere
CargoOptions: Default,
impl<'de> Deserialize<'de> for CargoOptionswhere
CargoOptions: Default,
source§fn 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>,
source§impl From<CargoOptions> for Rustc
impl From<CargoOptions> for Rustc
source§fn from(cargo: CargoOptions) -> Self
fn from(cargo: CargoOptions) -> Self
source§impl FromArgMatches for CargoOptions
impl FromArgMatches for CargoOptions
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
.source§impl Parser for CargoOptions
impl Parser for CargoOptions
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
source§impl PartialEq for CargoOptions
impl PartialEq for CargoOptions
source§fn eq(&self, other: &CargoOptions) -> bool
fn eq(&self, other: &CargoOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CargoOptions
impl Serialize for CargoOptions
impl Eq for CargoOptions
impl StructuralPartialEq for CargoOptions
Auto Trait Implementations§
impl Freeze for CargoOptions
impl RefUnwindSafe for CargoOptions
impl Send for CargoOptions
impl Sync for CargoOptions
impl Unpin for CargoOptions
impl UnwindSafe for CargoOptions
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.