euv-core 0.46.1

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Canonical vendor identifier for WeChat Mini-Program.
pub const MINIAPP_VENDOR_WECHAT: &str = "wechat";

/// Canonical vendor identifier for Alipay Mini-Program.
pub const MINIAPP_VENDOR_ALIPAY: &str = "alipay";

/// Canonical vendor identifier for Douyin / ByteDance Mini-Program.
pub const MINIAPP_VENDOR_DOUYIN: &str = "douyin";

/// Canonical vendor identifier for Baidu Smart Mini-Program.
pub const MINIAPP_VENDOR_BAIDU: &str = "baidu";

/// Canonical vendor identifier for QQ Mini-Program.
pub const MINIAPP_VENDOR_QQ: &str = "qq";

/// Canonical vendor identifier for Kuaishou Mini-Program.
pub const MINIAPP_VENDOR_KUAISHOU: &str = "kuaishou";

/// Canonical vendor identifier for HarmonyOS Atomic Service.
pub const MINIAPP_VENDOR_HARMONY_ATOMIC: &str = "harmony-atomic";

/// Global JS runtime namespace for WeChat (`wx`).
pub const MINIAPP_GLOBAL_WECHAT: &str = "wx";

/// Global JS runtime namespace for Alipay (`my`).
pub const MINIAPP_GLOBAL_ALIPAY: &str = "my";

/// Global JS runtime namespace for Douyin (`tt`).
pub const MINIAPP_GLOBAL_DOUYIN: &str = "tt";

/// Global JS runtime namespace for Baidu (`swan`).
pub const MINIAPP_GLOBAL_BAIDU: &str = "swan";

/// Global JS runtime namespace for QQ (`qq`).
pub const MINIAPP_GLOBAL_QQ: &str = "qq";

/// Global JS runtime namespace for Kuaishou (`ks`).
pub const MINIAPP_GLOBAL_KUAISHOU: &str = "ks";

/// Global runtime namespace identifier for HarmonyOS Atomic Service (`atomic`).
pub const MINIAPP_GLOBAL_HARMONY_ATOMIC: &str = "atomic";

/// Extra vertical breathing margin below the host capsule button in logical dp.
pub const MINIAPP_CAPSULE_BOTTOM_GAP_DP: f32 = 6.0;

/// Default mini-program viewport logical width in dp.
pub(crate) const MINIAPP_DEFAULT_WIDTH: u32 = 390;

/// Default mini-program viewport logical height in dp.
pub(crate) const MINIAPP_DEFAULT_HEIGHT: u32 = 844;

/// Default mini-program display pixel ratio.
pub(crate) const MINIAPP_DEFAULT_DPR: f32 = 3.0;

/// Default mini-program status bar height in logical dp.
pub(crate) const MINIAPP_DEFAULT_STATUS_BAR_DP: f32 = 44.0;

/// Default mini-program bottom home indicator inset in logical dp.
pub(crate) const MINIAPP_DEFAULT_SAFE_BOTTOM_DP: f32 = 34.0;

/// Default mini-program capsule button width in logical dp.
pub(crate) const MINIAPP_DEFAULT_CAPSULE_W: f32 = 87.0;

/// Default mini-program capsule button height in logical dp.
pub(crate) const MINIAPP_DEFAULT_CAPSULE_H: f32 = 32.0;

/// Default mini-program capsule right edge margin in logical dp.
pub(crate) const MINIAPP_DEFAULT_CAPSULE_RIGHT_MARGIN: f32 = 10.0;

/// Default mini-program route path.
pub(crate) const MINIAPP_DEFAULT_ROUTE: &str = "/pages/index/index";

/// Default mini-program BCP-47 language tag.
pub(crate) const MINIAPP_DEFAULT_LANGUAGE: &str = "zh-CN";

/// WeChat/QQ/Douyin/Kuaishou markup template file extension (`wxml` / `axml` / `ttml` / `swan` / `qml` / `ksml` / `ets`).
pub(crate) const MINIAPP_EXT_WXML: &str = "wxml";
pub(crate) const MINIAPP_EXT_AXML: &str = "axml";
pub(crate) const MINIAPP_EXT_TTML: &str = "ttml";
pub(crate) const MINIAPP_EXT_SWAN: &str = "swan";
pub(crate) const MINIAPP_EXT_QML: &str = "qml";
pub(crate) const MINIAPP_EXT_KSML: &str = "ksml";
pub(crate) const MINIAPP_EXT_ETS: &str = "ets";