[][src]Struct maturin::Target

pub struct Target { /* fields omitted */ }

The part of the current platform that is relevant when building wheels and is supported

Implementations

impl Target[src]

pub fn from_target_triple(target_triple: Option<String>) -> Result<Self>[src]

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

pub fn pointer_width(&self) -> usize[src]

Returns whether the platform is 64 bit or 32 bit

pub fn is_unix(&self) -> bool[src]

Returns true if the current platform is linux or mac os

pub fn is_linux(&self) -> bool[src]

Returns true if the current platform is linux

pub fn is_freebsd(&self) -> bool[src]

Returns true if the current platform is freebsd

pub fn is_macos(&self) -> bool[src]

Returns true if the current platform is mac os

pub fn is_windows(&self) -> bool[src]

Returns true if the current platform is windows

pub fn get_platform_tag(&self, manylinux: &Manylinux) -> String[src]

Returns the platform part of the tag for the wheel name for cffi wheels

pub fn get_py3_tags(&self, manylinux: &Manylinux) -> Vec<String>[src]

Returns the tags for the WHEEL file for cffi wheels

pub fn get_shared_platform_tag(&self) -> &'static str[src]

Returns the platform for the tag in the shared libaries file name

pub fn get_venv_python(&self, venv_base: impl AsRef<Path>) -> PathBuf[src]

Returns the path to the python executable inside a venv

pub fn get_venv_bin_dir(&self, venv_base: impl AsRef<Path>) -> PathBuf[src]

Returns the directory where the binaries are stored inside a venv

pub fn get_python(&self) -> PathBuf[src]

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

pub fn get_universal_tags(&self, manylinux: &Manylinux) -> (String, Vec<String>)[src]

Returns the tags for the platform without python version

Trait Implementations

impl Clone for Target[src]

impl Debug for Target[src]

impl Eq for Target[src]

impl PartialEq<Target> for Target[src]

impl StructuralEq for Target[src]

impl StructuralPartialEq for Target[src]

Auto Trait Implementations

impl RefUnwindSafe for Target

impl Send for Target

impl Sync for Target

impl Unpin for Target

impl UnwindSafe for Target

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<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, 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>,