pub enum AppleTargetKind {
IosSim,
IpadSim,
IosDevice,
IpadDevice,
WatchOsSim,
WatchOsDevice,
}Expand description
Apple mobile and wearable targets supported by the pure-Rust Apple bundle builder.
Variants§
IosSim
iOS Simulator (aarch64-apple-ios-sim / iphonesimulator).
IpadSim
iPadOS Simulator (aarch64-apple-ios-sim / iphonesimulator).
IosDevice
Physical iOS device (aarch64-apple-ios / iphoneos).
IpadDevice
Physical iPadOS device (aarch64-apple-ios / iphoneos).
WatchOsSim
Apple watchOS Simulator (aarch64-apple-watchos-sim / watchsimulator).
WatchOsDevice
Physical Apple Watch device (aarch64-apple-watchos / watchos).
Implementations§
Source§impl AppleTargetKind
Target metadata helpers for AppleTargetKind.
impl AppleTargetKind
Target metadata helpers for AppleTargetKind.
Sourcepub fn rust_triple(&self) -> &'static str
pub fn rust_triple(&self) -> &'static str
Returns the Rust target triple for compiling the static library.
§Returns
&'static str- Rust compiler target triple.
Sourcepub fn xcode_sdk(&self) -> &'static str
pub fn xcode_sdk(&self) -> &'static str
Returns the Xcode --sdk name required to compile and link this target.
§Returns
&'static str- Xcode SDK identifier.
Sourcepub fn is_simulator(&self) -> bool
pub fn is_simulator(&self) -> bool
Returns whether this target runs inside an Apple Simulator.
§Returns
bool-truefor simulator targets.
Sourcepub fn is_watchos(&self) -> bool
pub fn is_watchos(&self) -> bool
Returns whether this target builds an Apple watchOS SwiftUI bundle.
§Returns
bool-truefor watchOS targets.
Sourcepub fn is_ipad(&self) -> bool
pub fn is_ipad(&self) -> bool
Returns whether this target prefers an iPad simulator device.
§Returns
bool-truefor iPadOS targets.
Sourcepub fn default_bundle_name(&self) -> &'static str
pub fn default_bundle_name(&self) -> &'static str
Sourcepub fn default_executable_name(&self) -> &'static str
pub fn default_executable_name(&self) -> &'static str
Returns the executable binary filename inside the .app bundle.
§Returns
&'static str-EuvShowcaseorEuvWatch.
Sourcepub fn default_bundle_id(&self) -> &'static str
pub fn default_bundle_id(&self) -> &'static str
Sourcepub fn default_out_subdir(&self) -> &'static str
pub fn default_out_subdir(&self) -> &'static str
Returns the default relative output directory under dist/.
§Returns
&'static str-"ios"or"wearable/watchos".
Sourcepub fn host_dir_name(&self) -> &'static str
pub fn host_dir_name(&self) -> &'static str
Returns the staging directory name under target/mobile-hosts/.
§Returns
&'static str-"ios-host"or"watchos-host".
Trait Implementations§
Source§impl Clone for AppleTargetKind
impl Clone for AppleTargetKind
impl Copy for AppleTargetKind
Source§impl Debug for AppleTargetKind
impl Debug for AppleTargetKind
Source§impl Default for AppleTargetKind
impl Default for AppleTargetKind
Source§impl<'de> Deserialize<'de> for AppleTargetKind
impl<'de> Deserialize<'de> for AppleTargetKind
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>,
impl Eq for AppleTargetKind
Source§impl PartialEq for AppleTargetKind
impl PartialEq for AppleTargetKind
Source§impl Serialize for AppleTargetKind
impl Serialize for AppleTargetKind
impl StructuralPartialEq for AppleTargetKind
Auto Trait Implementations§
impl Forget for AppleTargetKind
impl Freeze for AppleTargetKind
impl Move for AppleTargetKind
impl RefUnwindSafe for AppleTargetKind
impl Send for AppleTargetKind
impl Sync for AppleTargetKind
impl Unpin for AppleTargetKind
impl UnsafeUnpin for AppleTargetKind
impl UnwindSafe for AppleTargetKind
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
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 more