pub enum TargetTriple {
Show 45 variants
Windows,
Linux,
Macos,
X8664PcWindowsMsvc,
Aarch64PcWindowsMsvc,
I686PcWindowsMsvc,
X8664UnknownLinuxGnu,
Aarch64AppleDarwin,
X8664AppleDarwin,
Aarch64UnknownLinuxGnu,
Aarch64UnknownLinuxMusl,
X8664UnknownLinuxMusl,
Riscv64UnknownLinuxGnu,
X8664Manylinux2014,
X8664Manylinux217,
X8664Manylinux228,
X8664Manylinux231,
X8664Manylinux232,
X8664Manylinux233,
X8664Manylinux234,
X8664Manylinux235,
X8664Manylinux236,
X8664Manylinux237,
X8664Manylinux238,
X8664Manylinux239,
X8664Manylinux240,
Aarch64Manylinux2014,
Aarch64Manylinux217,
Aarch64Manylinux228,
Aarch64Manylinux231,
Aarch64Manylinux232,
Aarch64Manylinux233,
Aarch64Manylinux234,
Aarch64Manylinux235,
Aarch64Manylinux236,
Aarch64Manylinux237,
Aarch64Manylinux238,
Aarch64Manylinux239,
Aarch64Manylinux240,
Aarch64LinuxAndroid,
X8664LinuxAndroid,
Wasm32Pyodide2024,
Arm64Ios,
Arm64IosSimulator,
X8664IosSimulator,
}Expand description
The supported target triples. Each triple consists of an architecture, vendor, and operating system.
See: https://doc.rust-lang.org/nightly/rustc/platform-support.html
Variants§
Windows
An alias for x86_64-pc-windows-msvc, the default target for Windows.
Linux
An alias for x86_64-unknown-linux-gnu, the default target for Linux.
Macos
An alias for aarch64-apple-darwin, the default target for macOS.
X8664PcWindowsMsvc
A 64-bit x86 Windows target.
Aarch64PcWindowsMsvc
An ARM64 Windows target.
I686PcWindowsMsvc
A 32-bit x86 Windows target.
X8664UnknownLinuxGnu
An x86 Linux target. Equivalent to x86_64-manylinux_2_28.
Aarch64AppleDarwin
An ARM-based macOS target, as seen on Apple Silicon devices
By default, assumes the least-recent, non-EOL macOS version (13.0), but respects
the MACOSX_DEPLOYMENT_TARGET environment variable if set.
X8664AppleDarwin
An x86 macOS target.
By default, assumes the least-recent, non-EOL macOS version (13.0), but respects
the MACOSX_DEPLOYMENT_TARGET environment variable if set.
Aarch64UnknownLinuxGnu
An ARM64 Linux target. Equivalent to aarch64-manylinux_2_28.
Aarch64UnknownLinuxMusl
An ARM64 Linux target.
X8664UnknownLinuxMusl
An x86_64 Linux target.
Riscv64UnknownLinuxGnu
A RISCV64 Linux target.
X8664Manylinux2014
An x86_64 target for the manylinux2014 platform. Equivalent to x86_64-manylinux_2_17.
X8664Manylinux217
An x86_64 target for the manylinux_2_17 platform.
X8664Manylinux228
An x86_64 target for the manylinux_2_28 platform.
X8664Manylinux231
An x86_64 target for the manylinux_2_31 platform.
X8664Manylinux232
An x86_64 target for the manylinux_2_32 platform.
X8664Manylinux233
An x86_64 target for the manylinux_2_33 platform.
X8664Manylinux234
An x86_64 target for the manylinux_2_34 platform.
X8664Manylinux235
An x86_64 target for the manylinux_2_35 platform.
X8664Manylinux236
An x86_64 target for the manylinux_2_36 platform.
X8664Manylinux237
An x86_64 target for the manylinux_2_37 platform.
X8664Manylinux238
An x86_64 target for the manylinux_2_38 platform.
X8664Manylinux239
An x86_64 target for the manylinux_2_39 platform.
X8664Manylinux240
An x86_64 target for the manylinux_2_40 platform.
Aarch64Manylinux2014
An ARM64 target for the manylinux2014 platform. Equivalent to aarch64-manylinux_2_17.
Aarch64Manylinux217
An ARM64 target for the manylinux_2_17 platform.
Aarch64Manylinux228
An ARM64 target for the manylinux_2_28 platform.
Aarch64Manylinux231
An ARM64 target for the manylinux_2_31 platform.
Aarch64Manylinux232
An ARM64 target for the manylinux_2_32 platform.
Aarch64Manylinux233
An ARM64 target for the manylinux_2_33 platform.
Aarch64Manylinux234
An ARM64 target for the manylinux_2_34 platform.
Aarch64Manylinux235
An ARM64 target for the manylinux_2_35 platform.
Aarch64Manylinux236
An ARM64 target for the manylinux_2_36 platform.
Aarch64Manylinux237
An ARM64 target for the manylinux_2_37 platform.
Aarch64Manylinux238
An ARM64 target for the manylinux_2_38 platform.
Aarch64Manylinux239
An ARM64 target for the manylinux_2_39 platform.
Aarch64Manylinux240
An ARM64 target for the manylinux_2_40 platform.
Aarch64LinuxAndroid
An ARM64 Android target.
By default uses Android API level 24, but respects
the ANDROID_API_LEVEL environment variable if set.
X8664LinuxAndroid
An x86_64 Android target.
By default uses Android API level 24, but respects
the ANDROID_API_LEVEL environment variable if set.
Wasm32Pyodide2024
A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12.
Arm64Ios
An ARM64 target for iOS device
By default, iOS 13.0 is used, but respects the IPHONEOS_DEPLOYMENT_TARGET
environment variable if set.
Arm64IosSimulator
An ARM64 target for iOS simulator
By default, iOS 13.0 is used, but respects the IPHONEOS_DEPLOYMENT_TARGET
environment variable if set.
X8664IosSimulator
An x86_64 target for iOS simulator
By default, iOS 13.0 is used, but respects the IPHONEOS_DEPLOYMENT_TARGET
environment variable if set.
Implementations§
Source§impl TargetTriple
impl TargetTriple
Sourcepub fn platform_machine(self) -> &'static str
pub fn platform_machine(self) -> &'static str
Return the platform_machine value for the target.
Sourcepub fn platform_system(self) -> &'static str
pub fn platform_system(self) -> &'static str
Return the platform_system value for the target.
Sourcepub fn platform_version(self) -> &'static str
pub fn platform_version(self) -> &'static str
Return the platform_version value for the target.
Sourcepub fn platform_release(self) -> &'static str
pub fn platform_release(self) -> &'static str
Return the platform_release value for the target.
Sourcepub fn sys_platform(self) -> &'static str
pub fn sys_platform(self) -> &'static str
Return the sys_platform value for the target.
Sourcepub fn manylinux_compatible(self) -> bool
pub fn manylinux_compatible(self) -> bool
Return true if the platform is compatible with manylinux.
Sourcepub fn markers(self, base: &MarkerEnvironment) -> MarkerEnvironment
pub fn markers(self, base: &MarkerEnvironment) -> MarkerEnvironment
Return a MarkerEnvironment compatible with the given TargetTriple, based on
a base MarkerEnvironment.
The returned MarkerEnvironment will preserve the base environment’s Python version
markers, but override its platform markers.
Trait Implementations§
Source§impl Clone for TargetTriple
impl Clone for TargetTriple
Source§fn clone(&self) -> TargetTriple
fn clone(&self) -> TargetTriple
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetTriple
impl Debug for TargetTriple
Source§impl<'de> Deserialize<'de> for TargetTriple
impl<'de> Deserialize<'de> for TargetTriple
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TargetTriple
impl PartialEq for TargetTriple
impl Copy for TargetTriple
impl Eq for TargetTriple
impl StructuralPartialEq for TargetTriple
Auto Trait Implementations§
impl Freeze for TargetTriple
impl RefUnwindSafe for TargetTriple
impl Send for TargetTriple
impl Sync for TargetTriple
impl Unpin for TargetTriple
impl UnwindSafe for TargetTriple
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more