euv-cli 0.51.0

Cross-platform CLI tool for the euv native UI framework supporting run, build, check, fmt, doctor, new, and Hyperlane SSE dynamic updates across all supported platforms.
Documentation
use super::*;

/// HarmonyOS / OpenHarmony device form factor profiles supported by the Stage-Model builder.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum HarmonyDeviceKind {
    /// HarmonyOS smartphone profile (`phone`).
    #[default]
    Phone,
    /// HarmonyOS tablet profile (`tablet`).
    Tablet,
    /// HarmonyOS 2-in-1 PC / desktop profile (`2in1`).
    Pc2In1,
    /// Universal multi-device profile (`phone` + `tablet` + `2in1`).
    Universal,
    /// Foldable display profile (`phone` + `tablet`).
    Foldable,
    /// HarmonyOS smartwatch wearable profile (`wearable`).
    Wearable,
    /// HarmonyOS smart TV / Vision profile (`tv`).
    Tv,
    /// HarmonyOS automotive / cockpit profile (`car`).
    Car,
}

/// OpenHarmony native CPU ABI supported by N-API/XComponent/EGL compilation.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum HarmonyAbi {
    /// 64-bit ARM (`arm64-v8a` / `aarch64-unknown-linux-ohos`).
    #[default]
    Arm64V8a,
    /// 64-bit x86 (`x86_64` / `x86_64-unknown-linux-ohos`).
    X86_64,
}

/// All 13 supported super-app MiniApp ecosystem targets.
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum MiniAppVendor {
    /// WeChat Mini-Program (`wx`, `.wxml`/`.wxss`, `WXWebAssembly`).
    Wechat,
    /// Alipay Mini-Program (`my`, `.axml`/`.acss`, `MYWebAssembly`).
    Alipay,
    /// Douyin / ByteDance Mini-Program (`tt`, `.ttml`/`.ttss`, `TTWebAssembly`).
    Douyin,
    /// Baidu Smart Mini-Program (`swan`, `.swan`/`.css`).
    Baidu,
    /// QQ Mini-Program (`qq`, `.qml`/`.qss`, `QQWebAssembly`).
    Qq,
    /// Kuaishou Mini-Program (`ks`, `.ksml`/`.css`).
    Kuaishou,
    /// JD Mini-Program (`jd`, `.jxml`/`.jxss`).
    Jd,
    /// Xiaohongshu Mini-Program (`xhs`, `.xhsml`/`.css`).
    Xhs,
    /// DingTalk Mini-Program (`dd`, `.axml`/`.acss`, `MYWebAssembly`).
    Dingtalk,
    /// Feishu / Lark Mini-Program (`tt`, `.ttml`/`.ttss`, `TTWebAssembly`).
    Feishu,
    /// Taobao Mini-Program (`my`, `.axml`/`.acss`, `MYWebAssembly`).
    Taobao,
    /// Meituan Mini-Program (`mt`, `.mxml`/`.mxss`).
    Meituan,
    /// HarmonyOS Atomic Service (`bundleType=atomicService`, `installationFree=true`).
    HarmonyAtomic,
}

/// QuickApp distribution targets supported by the pure-Rust QuickApp builder.
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum QuickAppVendor {
    /// QuickApp Alliance (`vip.ltpp.euv.quickapp`, Xiaomi/OPPO/vivo/Honor).
    Alliance,
    /// Huawei QuickApp (`vip.ltpp.euv.huawei.quickapp`).
    Huawei,
}

/// All 8 smartwatch wearable targets supported by the pure-Rust wearable builder.
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum WearableVendor {
    /// Google/Samsung Wear OS APK (routed to `android` builder with `WearOs`).
    WearOs,
    /// Apple watchOS SwiftUI/Rust bundle (routed to `apple` builder with `WatchOsSim`).
    WatchOs,
    /// Huawei HarmonyOS Watch (routed to `harmony` builder with `Wearable`).
    HarmonyWatch,
    /// Xiaomi HyperOS / Vela Watch zero-DOM WASM + Canvas2D host.
    Vela,
    /// vivo BlueOS Watch Studio zero-DOM WASM host (round 466 + GT squircle).
    VivoWatch,
    /// OPPO ColorOS Watch / Wear OS SurfaceView + Rotary Crown host.
    OppoWatch,
    /// Garmin Connect IQ Monkey C + AOD watch host.
    Garmin,
    /// Amazfit Zepp OS v3 zero-DOM WASM host (round 480 + squircle 390).
    ZeppOs,
}