Struct maturin::BuildOptions[][src]

pub struct BuildOptions {
    pub manylinux: Manylinux,
    pub interpreter: Option<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>,
    pub universal2: bool,
}

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]

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

Trait Implementations

impl Clone for BuildOptions[src]

impl Debug for BuildOptions[src]

impl Default for BuildOptions[src]

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

impl Eq for BuildOptions[src]

impl PartialEq<BuildOptions> for BuildOptions[src]

impl Serialize for BuildOptions[src]

impl StructOpt for BuildOptions[src]

impl StructOptInternal for BuildOptions[src]

impl StructuralEq for BuildOptions[src]

impl StructuralPartialEq for BuildOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,