Skip to main content

Crate euv_cli

Crate euv_cli 

Source
Expand description

euv-cli

Cross-platform command-line toolchain for euv providing native run, build, hot-reload dev server, dynamic WASM OTA hot-update server, Markdown documentation site builder, cross-target check, formatting, environment diagnostics, and project scaffolding across all seven platforms.

Structs§

BuildPlan
Complete declarative build plan for one target platform.
BuildStep
Single executable command step inside a cross-platform BuildPlan.
Cli
Root CLI parser for the euv cross-platform native toolchain.
DevServerConfig
Configuration for starting a live hot-reload and Dynamic WASM OTA development server.
DevServerHandle
Running hot-reload dev server handle supporting clean programmatic shutdown and inspection.
DevServerReport
Machine-readable report returned when starting or probing the dev/docs server.
DocsBuildArgs
Shared documentation source, output, title, and base URL arguments.
DoctorReport
Complete environment readiness report produced by euv doctor.
FileChangeSet
Categorized file changes detected between two consecutive WatchSnapshot scans.
FileStamp
Filesystem modification stamp used for deterministic cross-platform change detection.
FmtReport
Structured summary produced by euv fmt across workspace Rust sources and macro invocations.
HmrEvent
Structured live-reload notification broadcast over SSE /__euv_hmr.
HmrHub
Shared concurrent state coordinating SSE reload notifications, OTA bundles, and server shutdown.
OtaBundleState
In-memory pair holding the active OTA manifest and its executable .wasm bytes.
OtaManifest
Signed Dynamic WASM OTA manifest served at /__euv_ota/manifest.json.
ScaffoldReport
Result summary emitted after scaffolding a new euv project via euv new.
ServerBindArgs
Shared local HTTP dev server bind, watcher poll interval, and smoke-run arguments.
TargetReadiness
Installed toolchain status for a single Rust cross-compilation target.
TargetSpec
Target platform metadata describing Rust triple, system APIs, and output bundle.
WatchSnapshot
Recursive file tree snapshot capturing stamps for all watched source files.

Enums§

Commands
Top-level euv CLI subcommands.
DevTargetArg
Target mode for the euv dev hot-reload and OTA development server.
DocsAction
Subcommands under euv docs for building or live-serving project Markdown documentation.
HmrEventKind
Classification of live hot-reload events broadcast over SSE (/__euv_hmr).
RenderArg
CLI render pipeline mode selector.
TargetArg
CLI target selector covering all seven euv platforms plus native and all.

Constants§

DEFAULT_DEV_HOST
Default local bind host for euv dev and euv docs dev.
DEFAULT_DOCS_OUT_DIR
Default static documentation output directory.
DEV_STATUS_ENDPOINT
JSON health and revision status endpoint for local tooling and CI probes.
HMR_ENDPOINT
Server-Sent Events endpoint streaming live reload and hot-update notifications.
OTA_DEV_SIGNING_KEY
Shared signing key used for local dev OTA hot-update verification.
OTA_MANIFEST_ENDPOINT
JSON manifest endpoint advertising the latest Dynamic WASM OTA hot-update build.
OTA_MODULE_ENDPOINT
Binary endpoint serving the latest signed Dynamic WASM .wasm module over HTTP.
OTA_SLOT_DEV
Default component slot targeted by local dev OTA hot updates.
TRIPLE_ANDROID
Rust target triple for Android ARM64 NDK builds.
TRIPLE_IOS
Rust target triple for iOS and iPadOS ARM64 device builds.
TRIPLE_LINUX
Rust target triple for Linux x86_64 GNU native builds.
TRIPLE_LINUX_ARM64
Rust target triple for Linux ARM64 GNU native builds.
TRIPLE_MACOS
Rust target triple for macOS Apple Silicon native builds.
TRIPLE_MACOS_X64
Rust target triple for macOS Intel x86_64 native builds.
TRIPLE_WEB
Rust target triple for WebAssembly browser builds.
TRIPLE_WINDOWS
Rust target triple for Windows x86_64 MSVC native builds.
TRIPLE_WINDOWS_ARM64
Rust target triple for Windows ARM64 MSVC native builds.

Functions§

build_dev_ota_state
Compiles a fresh signed Dynamic WASM OTA hot-update bundle for version version.
build_docs_site
Builds a complete static documentation site from all .md files beneath src_dir into out_dir.
collect_doctor_report
Inspects the local Rust toolchain, installed 7-platform targets, and SDKs.
execute_cli
Dispatches a parsed Cli command and returns formatted output text.
format_doctor_report
Formats a DoctorReport as human-readable terminal lines.
format_euv_macros_in_source
Formats all euv procedural macro bodies (view!, style!, tokens!, etc.) in a single Rust source string deterministically and idempotently.
format_workspace_macros
Formats all .rs files under root (or a single .rs file) in place or in --check mode.
host_native_target
Resolves the host’s native TargetArg.
inject_dev_hmr_into_html
Injects the dev-only SSE hot-reload script right before </body> in an HTML document.
mime_type_for_path
Determines the HTTP Content-Type header for a static file path by extension.
package_zero_js_web_bundle
Packages a compiled WebAssembly output directory into a zero-JS-file bundle containing only index.html and .wasm.
resolve_build_plans
Generates declarative cross-platform build plans for target.
resolve_check_steps
Builds deduplicated cargo check --target <triple> steps for target.
resolve_run_step
Builds a single cargo run step for target and render.
resolve_target_specs
Returns the canonical TargetSpec list for a CLI TargetArg.
run_dev_blocking
Starts the dev server and either exits immediately (once=true) or serves continuously until interrupted.
scaffold_project
Scaffolds a lean cross-platform euv project inside parent_dir/<name>.
spec_for_platform
Returns the TargetSpec for a single concrete platform target.
start_dev_server
Starts a live HTTP, SSE hot-reload, file-watcher, and Dynamic WASM OTA dev server in background threads.
target_triple_for_host
Resolves the preferred Rust target triple for target, adapting native desktop triples to host CPU architecture.