pub enum PlatformKind {
Show 14 variants
Web,
Android,
Ios,
IpadOs,
MacOs,
Windows,
Linux,
HarmonyOs,
Wearable,
MiniApp,
QuickApp,
Terminal,
TerminalCli,
Headless,
}Expand description
All supported execution targets across Web, Mobile, Tablet, Desktop, HarmonyOS, Wearables, Mini-Programs, QuickApps, Terminal, and Headless.
Variants§
Web
Browser WebAssembly platform using HTML5 Canvas / WebGL2 / WebGPU.
Android
Android native platform using Android NDK (ANativeWindow / AInput / Vulkan / GLES).
Ios
iOS phone native platform using UIKit / CoreGraphics / Metal.
IpadOs
iPadOS tablet native platform using UIKit / Stage Manager / Apple Pencil / Metal.
MacOs
macOS desktop native platform using Cocoa AppKit / CoreGraphics / Metal.
Windows
Windows desktop native platform using Win32 / GDI32 / DWM / Direct3D.
Linux
Linux desktop native platform using X11 / Wayland / Vulkan.
HarmonyOs
HarmonyOS / OpenHarmony native platform using ArkUI XComponent / OHNativeWindow / NAPI / EGL / Vulkan.
Wearable
Smart wearable / smartwatch platform (Wear OS, watchOS, HarmonyOS Watch, HyperOS/Vela, ZeppOS).
MiniApp
Super-app Mini-Program runtime (WeChat, Alipay, Douyin, Baidu, QQ, Kuaishou, HarmonyOS Atomic Service).
QuickApp
QuickApp Alliance and Huawei QuickApp native-like runtime.
Terminal
Interactive PTY Terminal TUI platform using character cell grid and ANSI/VT escapes.
TerminalCli
Non-interactive static/pipe CLI platform writing clean UTF-8 output with exit code propagation.
Headless
Deterministic offscreen headless platform for automated parity tests and benchmarks.
Implementations§
Source§impl PlatformKind
Metadata queries for PlatformKind.
impl PlatformKind
Metadata queries for PlatformKind.
Sourcepub fn from_str_id(name: &str) -> Option<Self>
pub fn from_str_id(name: &str) -> Option<Self>
Sourcepub const fn form_factor(&self) -> DeviceFormFactor
pub const fn form_factor(&self) -> DeviceFormFactor
Sourcepub const fn default_graphics_backend(&self) -> GraphicsBackend
pub const fn default_graphics_backend(&self) -> GraphicsBackend
Sourcepub const fn is_mobile_or_tablet(&self) -> bool
pub const fn is_mobile_or_tablet(&self) -> bool
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
Sourcepub const fn is_wearable(&self) -> bool
pub const fn is_wearable(&self) -> bool
Sourcepub const fn is_mini_container(&self) -> bool
pub const fn is_mini_container(&self) -> bool
Sourcepub const fn is_harmony(&self) -> bool
pub const fn is_harmony(&self) -> bool
Sourcepub const fn all_targets() -> [Self; 7]
pub const fn all_targets() -> [Self; 7]
Returns the list of all 7 classic desktop, mobile, and web targets supported by euv.
§Returns
[Self; 7]- Array containing Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Sourcepub const fn all_supported_targets() -> [Self; 13]
pub const fn all_supported_targets() -> [Self; 13]
Returns the complete list of all 13 production execution targets across Desktop, Mobile, HarmonyOS, Wearables, Mini-Programs, QuickApps, and Terminal.
§Returns
[Self; 13]- Complete production platform target list.