Struct maturin::BuildOptions
source · pub struct BuildOptions {
pub platform_tag: Vec<PlatformTag>,
pub interpreter: Vec<PathBuf>,
pub find_interpreter: bool,
pub bindings: Option<String>,
pub out: Option<PathBuf>,
pub skip_auditwheel: bool,
pub zig: bool,
pub cargo: CargoOptions,
}
Expand description
High level API for building wheels from a crate which is also used for the CLI
Fields§
§platform_tag: Vec<PlatformTag>
Control the platform tag on linux.
Options are manylinux
tags (for example manylinux2014
/manylinux_2_24
)
or musllinux
tags (for example musllinux_1_2
)
and linux
for the native linux tag.
Note that manylinux1
and manylinux2010
is unsupported by the rust compiler.
Wheels with the native linux
tag will be rejected by pypi,
unless they are separately validated by auditwheel
.
The default is the lowest compatible manylinux
tag, or plain linux
if nothing matched
This option is ignored on all non-linux platforms
interpreter: Vec<PathBuf>
The python versions to build wheels for, given as the executables of
interpreters such as python3.9
or /usr/bin/python3.8
.
find_interpreter: bool
Find interpreters from the host machine
bindings: Option<String>
Which kind of bindings to use.
out: Option<PathBuf>
The directory to store the built wheels in. Defaults to a new “wheels” directory in the project’s target directory
skip_auditwheel: bool
Don’t check for manylinux compliance
zig: bool
For manylinux targets, use zig to ensure compliance for the chosen manylinux version
Default to manylinux2014/manylinux_2_17 if you do not specify an --compatibility
Make sure you installed zig with pip install maturin[zig]
cargo: CargoOptions
Cargo build options
Implementations§
source§impl BuildOptions
impl BuildOptions
sourcepub fn into_build_context(
self,
release: bool,
strip: bool,
editable: bool
) -> Result<BuildContext>
pub fn into_build_context( self, release: bool, strip: bool, editable: bool ) -> Result<BuildContext>
Tries to fill the missing metadata for a BuildContext by querying cargo and python
Methods from Deref<Target = 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 BuildOptions
impl Args for BuildOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for BuildOptions
impl Clone for BuildOptions
source§fn clone(&self) -> BuildOptions
fn clone(&self) -> BuildOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl CommandFactory for BuildOptions
impl CommandFactory for BuildOptions
source§impl Debug for BuildOptions
impl Debug for BuildOptions
source§impl Default for BuildOptions
impl Default for BuildOptions
source§fn default() -> BuildOptions
fn default() -> BuildOptions
source§impl Deref for BuildOptions
impl Deref for BuildOptions
source§impl DerefMut for BuildOptions
impl DerefMut for BuildOptions
source§impl<'de> Deserialize<'de> for BuildOptionswhere
BuildOptions: Default,
impl<'de> Deserialize<'de> for BuildOptionswhere
BuildOptions: 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 FromArgMatches for BuildOptions
impl FromArgMatches for BuildOptions
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 BuildOptions
impl Parser for BuildOptions
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 BuildOptions
impl PartialEq for BuildOptions
source§fn eq(&self, other: &BuildOptions) -> bool
fn eq(&self, other: &BuildOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BuildOptions
impl Serialize for BuildOptions
impl Eq for BuildOptions
impl StructuralPartialEq for BuildOptions
Auto Trait Implementations§
impl Freeze for BuildOptions
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnwindSafe for BuildOptions
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.