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
sourceimpl 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
sourceimpl Args for CargoOptions
impl Args for CargoOptions
sourcefn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
for this set of argumentssourcefn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
sourceimpl Clone for CargoOptions
impl Clone for CargoOptions
sourcefn clone(&self) -> CargoOptions
fn clone(&self) -> CargoOptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl CommandFactory for CargoOptions
impl CommandFactory for CargoOptions
sourceimpl Debug for CargoOptions
impl Debug for CargoOptions
sourceimpl Default for CargoOptions
impl Default for CargoOptions
sourcefn default() -> CargoOptions
fn default() -> CargoOptions
sourceimpl<'de> Deserialize<'de> for CargoOptionswhere
CargoOptions: Default,
impl<'de> Deserialize<'de> for CargoOptionswhere
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>,
sourceimpl From<CargoOptions> for Rustc
impl From<CargoOptions> for Rustc
sourcefn from(cargo: CargoOptions) -> Self
fn from(cargo: CargoOptions) -> Self
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>
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>
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>
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>
ArgMatches
to self
.sourceimpl Parser for CargoOptions
impl Parser for CargoOptions
sourcefn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os()
, return Err on error.sourcefn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
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,
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
sourceimpl PartialEq<CargoOptions> for CargoOptions
impl PartialEq<CargoOptions> for CargoOptions
sourcefn eq(&self, other: &CargoOptions) -> bool
fn eq(&self, other: &CargoOptions) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> Container<T> for Twhere
T: Clone,
impl<T> Container<T> for Twhere
T: Clone,
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.