Struct maturin::BuildOptions [−][src]
High level API for building wheels from a crate which is also used for the CLI
Fields
manylinux: Manylinux
Control the platform tag on linux. Options are 2010
(for manylinux2010),
2014
(for manylinux2014) and off
(for the native linux tag). Note that
manylinux1 is unsupported by the rust compiler. Wheels with the native tag
will be rejected by pypi, unless they are separately validated by
auditwheel
.
This option is ignored on all non-linux platforms
interpreter: Option<Vec<PathBuf>>
The python versions to build wheels for, given as the names of the interpreters. Uses autodiscovery if not explicitly set.
bindings: Option<String>
Which kind of bindings to use. Possible values are pyo3, rust-cpython, cffi and bin
manifest_path: PathBuf
The path to the Cargo.toml
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
target: Option<String>
The --target option for cargo
cargo_extra_args: Vec<String>
Extra arguments that will be passed to cargo as cargo rustc [...] [arg1] [arg2] --
Use as --cargo-extra-args="--my-arg"
rustc_extra_args: Vec<String>
Extra arguments that will be passed to rustc as cargo rustc [...] -- [arg1] [arg2]
Use as --rustc-extra-args="--my-arg"
universal2: bool
Control whether to build universal2 wheel for macOS or not. Only applies to macOS targets, do nothing otherwise.
Implementations
impl BuildOptions
[src]
pub fn into_build_context(
self,
release: bool,
strip: bool
) -> Result<BuildContext>
[src]
self,
release: bool,
strip: bool
) -> Result<BuildContext>
Tries to fill the missing metadata for a BuildContext by querying cargo and python
Trait Implementations
impl Clone for BuildOptions
[src]
fn clone(&self) -> BuildOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BuildOptions
[src]
impl Default for BuildOptions
[src]
impl<'de> Deserialize<'de> for BuildOptions where
BuildOptions: Default,
[src]
BuildOptions: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for BuildOptions
[src]
impl PartialEq<BuildOptions> for BuildOptions
[src]
fn eq(&self, other: &BuildOptions) -> bool
[src]
fn ne(&self, other: &BuildOptions) -> bool
[src]
impl Serialize for BuildOptions
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructOpt for BuildOptions
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
pub fn from_args() -> Self
[src]
pub fn from_args_safe() -> Result<Self, Error>
[src]
pub fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
pub fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for BuildOptions
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn is_subcommand() -> bool
[src]
pub fn from_subcommand(
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
[src]
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
impl StructuralEq for BuildOptions
[src]
impl StructuralPartialEq for BuildOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for BuildOptions
[src]
impl Send for BuildOptions
[src]
impl Sync for BuildOptions
[src]
impl Unpin for BuildOptions
[src]
impl UnwindSafe for BuildOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,