Struct maturin::Target [−][src]
pub struct Target { /* fields omitted */ }
Expand description
The part of the current platform that is relevant when building wheels and is supported
Implementations
Uses the given target triple or tries the guess the current target by using the one used for compilation
Fails if the target triple isn’t supported
Returns the platform part of the tag for the wheel name
Returns the name python uses in sys.platform
for this os
Returns the default Manylinux tag for this architecture
Returns whether the platform is 64 bit or 32 bit
Returns target triple string
Returns target architecture
Returns true if the current platform is freebsd
Returns true if the current platform is windows
Returns true if the current platform’s target env is Musl
Returns the tags for the WHEEL file for cffi wheels
Returns the path to the python executable inside a venv
Returns the directory where the binaries are stored inside a venv
pub fn get_venv_site_package(
&self,
venv_base: impl AsRef<Path>,
interpreter: &PythonInterpreter
) -> PathBuf
pub fn get_venv_site_package(
&self,
venv_base: impl AsRef<Path>,
interpreter: &PythonInterpreter
) -> PathBuf
Returns the site-packages directory inside a venv e.g. {venv_base}/lib/python{x}.{y} on unix or {venv_base}/Lib on window
Returns the path to the python executable
For windows it’s always python.exe for unix it’s first the venv’s python
and then python3
Returns the tags for the platform without python version
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Target
impl UnwindSafe for Target
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more