Struct pyo3_pack::BuildOptions [−][src]
pub struct BuildOptions {
pub interpreter: Vec<String>,
pub bindings: Option<String>,
pub manifest_path: PathBuf,
pub out: Option<PathBuf>,
pub debug: bool,
pub skip_auditwheel: bool,
pub cargo_extra_args: Vec<String>,
pub rustc_extra_args: Vec<String>,
}High level API for building wheels from a crate which can be also used for the CLI
Fields
interpreter: Vec<String>
The python versions to build wheels for, given as the names of the interpreters. Uses autodiscovery if not explicitly set.
bindings: Option<String>
The crate providing the python bindings. pyo3, rust-cpython and cffi are supported
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
debug: bool
Do a debug build (don't pass --release to cargo)
skip_auditwheel: bool
Don't check for manylinux compliance
cargo_extra_args: Vec<String>
Extra arguments that will be passed to cargo as cargo rustc [...] [arg1] [arg2] --
rustc_extra_args: Vec<String>
Extra arguments that will be passed to rustc as cargo rustc [...] -- [arg1] [arg2]
Methods
impl BuildOptions[src]
impl BuildOptionspub fn into_build_context(self) -> Result<BuildContext, Error>[src]
pub fn into_build_context(self) -> Result<BuildContext, Error>Tries to fill the missing metadata in BuildContext by querying cargo and python
Trait Implementations
impl Debug for BuildOptions[src]
impl Debug for BuildOptionsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl StructOpt for BuildOptions[src]
impl StructOpt for BuildOptionsfn clap<'a, 'b>() -> App<'a, 'b>[src]
fn clap<'a, 'b>() -> App<'a, 'b>Returns the corresponding clap::App.
fn from_clap(matches: &ArgMatches) -> Self[src]
fn from_clap(matches: &ArgMatches) -> SelfCreates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more
fn from_args() -> Self[src]
fn from_args() -> SelfGets 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]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, 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]
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, Gets the struct from any iterator such as a Vec of your making. Read more
impl Clone for BuildOptions[src]
impl Clone for BuildOptionsfn clone(&self) -> BuildOptions[src]
fn clone(&self) -> BuildOptionsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Eq for BuildOptions[src]
impl Eq for BuildOptionsimpl PartialEq for BuildOptions[src]
impl PartialEq for BuildOptionsfn eq(&self, other: &BuildOptions) -> bool[src]
fn eq(&self, other: &BuildOptions) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &BuildOptions) -> bool[src]
fn ne(&self, other: &BuildOptions) -> boolThis method tests for !=.
impl Default for BuildOptions[src]
impl Default for BuildOptionsAuto Trait Implementations
impl Send for BuildOptions
impl Send for BuildOptionsimpl Sync for BuildOptions
impl Sync for BuildOptions