[][src]Struct maturin::BuildOptions

pub struct BuildOptions {
    pub manylinux: Manylinux,
    pub interpreter: Vec<PathBuf>,
    pub bindings: Option<String>,
    pub manifest_path: PathBuf,
    pub out: Option<PathBuf>,
    pub skip_auditwheel: bool,
    pub target: Option<String>,
    pub cargo_extra_args: Vec<String>,
    pub rustc_extra_args: Vec<String>,
}

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.

  • 1: Use the manylinux1 tag and check for compliance{n}
  • 1-unchecked: Use the manylinux1 tag without checking for compliance{n}
  • 2010: Use the manylinux2010 tag and check for compliance{n}
  • 2010-unchecked: Use the manylinux1 tag without checking for compliance{n}
  • off: Use the native linux tag (off)

This option is ignored on all non-linux platforms

interpreter: 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

[deprecated, use --manylinux instead] 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"

Methods

impl BuildOptions[src]

pub fn into_build_context(
    self,
    release: bool,
    strip: bool
) -> Result<BuildContext, Error>
[src]

Tries to fill the missing metadata for a BuildContext by querying cargo and python

Trait Implementations

impl PartialEq<BuildOptions> for BuildOptions[src]

impl Default for BuildOptions[src]

impl Clone for BuildOptions[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for BuildOptions[src]

impl Debug for BuildOptions[src]

impl<'de> Deserialize<'de> for BuildOptions where
    BuildOptions: Default
[src]

impl Serialize for BuildOptions[src]

impl StructOpt for BuildOptions[src]

fn from_args() -> Self[src]

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

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]

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err