euv-cli 0.43.0

Cross-platform CLI tool for the euv native UI framework supporting run, build, check, fmt, doctor, and new across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
pub(crate) const BIN_RUSTC: &str = "rustc";
pub(crate) const BIN_RUSTUP: &str = "rustup";
pub(crate) const BIN_XCRUN: &str = "xcrun";
pub(crate) const ARG_VERSION: &str = "--version";
pub(crate) const ARG_TARGET_SUB: &str = "target";
pub(crate) const ARG_LIST: &str = "list";
pub(crate) const ARG_INSTALLED: &str = "--installed";
pub(crate) const ARG_SHOW_SDK: &str = "--show-sdk-path";
pub(crate) const ARG_CHECK: &str = "check";
pub(crate) const ARG_FMT: &str = "fmt";
pub(crate) const ARG_FMT_ALL: &str = "--all";
pub(crate) const ARG_FMT_CHECK: &str = "--check";
pub(crate) const ARG_PACKAGE: &str = "--package";
pub(crate) const ARG_RUN: &str = "run";
pub(crate) const ARG_DOUBLE_DASH: &str = "--";
pub(crate) const ENV_ANDROID_NDK: &str = "ANDROID_NDK_HOME";
pub(crate) const STATUS_OK: &str = "ok";
pub(crate) const STATUS_MISSING: &str = "missing";
pub(crate) const CARGO_TOML_NAME: &str = "Cargo.toml";
pub(crate) const SRC_DIR_NAME: &str = "src";
pub(crate) const MAIN_RS_NAME: &str = "main.rs";
pub(crate) const README_NAME: &str = "README.md";
pub(crate) const INDEX_HTML_NAME: &str = "index.html";
pub(crate) const SUFFIX_WASM: &str = ".wasm";
pub(crate) const SUFFIX_JS: &str = ".js";
pub(crate) const SUFFIX_DTS: &str = ".d.ts";
pub(crate) const PACKAGE_JSON_NAME: &str = "package.json";
pub(crate) const GITIGNORE_NAME: &str = ".gitignore";
pub(crate) const EXPORT_BRACE_PREFIX: &str = "export {";
pub(crate) const EXPORT_DEFAULT_PREFIX: &str = "export default ";
pub(crate) const EXPORT_PREFIX: &str = "export ";
pub(crate) const FALLBACK_WBG_INIT: &str = "async function __wbg_init(p){var u=typeof p==='string'?p:p.module_or_path;await WebAssembly.instantiateStreaming(fetch(u));}";
pub(crate) const WEB_BUNDLE_TITLE: &str = "euv Native WebAssembly App";
pub(crate) const ERR_WEB_WASM_MISSING: &str = "No .wasm artifact found in web output directory";
pub(crate) const ERR_STEP_FAILED: &str = "External command exited with non-zero status";
pub(crate) const HTML_ESC_AMP: &str = "&";
pub(crate) const HTML_ESC_LT: &str = "<";
pub(crate) const HTML_ESC_GT: &str = ">";
pub(crate) const HTML_ESC_QUOT: &str = """;
pub(crate) const TEMPLATE_MAIN_RS: &str = "use {euv::*, euv_ui::*};\n\nfn main() {\n    let mut win: WindowConfig = WindowConfig::default();\n    win.set_title(\"euv Native App\".to_string())\n        .set_size(1024, 720)\n        .set_render(RenderConfig::default());\n    let mut cfg: AppConfig = AppConfig::default();\n    cfg.set_window(win);\n    if let Ok(mut app) = App::new(cfg) {\n        let tokens: ThemeTokens = ThemeTokens::resolve(DesignScheme::Shadcn, ThemeMode::Light);\n        let _: NodeId = app.mount(move || {\n            view! {\n                column {\n                    width: Length::Percent(100.0)\n                    padding: Edges::all(SPACE_LG)\n                    gap: SPACE_MD\n                    EuvHeader {\n                        title: \"euv Native App\"\n                        subtitle: \"Cross-platform Rust UI across 7 native targets\"\n                        tokens: tokens\n                    }\n                    EuvButton {\n                        label: \"Get Started\"\n                        tokens: tokens\n                    }\n                }\n            }\n        });\n        let _: Result<FrameStats, PlatformError> = app.run_frames(Some(1));\n    }\n}\n";
pub(crate) const TEMPLATE_README_SUFFIX: &str = "\n\nCross-platform native Rust UI app built with `euv` targeting Web, Android, iOS, iPadOS, macOS, Windows, and Linux.\n";