Struct maturin::Target [−][src]
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 is_musl_target(&self) -> bool
[src]
Returns true if the current platform's target env is Musl
pub fn get_platform_tag(
&self,
manylinux: &Manylinux,
universal2: bool
) -> String
[src]
&self,
manylinux: &Manylinux,
universal2: bool
) -> String
Returns the platform part of the tag for the wheel name for cffi wheels
pub fn get_py3_tags(
&self,
manylinux: &Manylinux,
universal2: bool
) -> Vec<String>
[src]
&self,
manylinux: &Manylinux,
universal2: bool
) -> Vec<String>
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 libraries 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,
universal2: bool
) -> (String, Vec<String>)
[src]
&self,
manylinux: &Manylinux,
universal2: bool
) -> (String, Vec<String>)
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
[src]
impl Send for Target
[src]
impl Sync for Target
[src]
impl Unpin for Target
[src]
impl UnwindSafe for Target
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,