Expand description
euv-cli
Cross-platform command-line toolchain for euv providing native run, build, hot-reload dev server, Hyperlane HTTP/SSE dynamic update server, Markdown documentation site builder, cross-target check, formatting, environment diagnostics, and project scaffolding across all supported platforms.
Structs§
- Blob
Route Hook - Hyperlane
ServerHookservingGET /v1/blobs/{sha256}with Range resume support. - Build
Plan - Complete declarative build plan for one target platform.
- Build
Step - Single executable command step inside a cross-platform
BuildPlan. - Channel
Pointer - Atomically swapped active release pointer persisted in
channels/<project>/<channel>/active.json. - Channel
Status Entry - Status summary for a single project/channel inside
UpdateStoreStatus. - Cli
- Root CLI parser for the
euvcross-platform native toolchain. - DevServer
Config - Configuration for starting a live hot-reload and Dynamic WASM OTA development server.
- DevServer
Handle - Running hot-reload dev server handle supporting clean programmatic shutdown and inspection.
- DevServer
Report - Machine-readable report returned when starting or probing the dev/docs server.
- Docs
Build Args - Shared documentation source, output, title, and base URL arguments.
- Doctor
Report - Complete environment readiness report produced by
euv doctor. - Events
Route Hook - Hyperlane
ServerHookstreamingGET /v1/projects/{project}/channels/{channel}/eventsviahyperlane-plugin-sse. - File
Change Set - Categorized file changes detected between two consecutive
WatchSnapshotscans. - File
Stamp - Filesystem modification stamp used for deterministic cross-platform change detection.
- FmtReport
- Structured summary produced by
euv fmtacross workspace text files, 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.
- Manifest
Route Hook - Hyperlane
ServerHookservingGET /v1/projects/{project}/channels/{channel}/manifest. - OtaBundle
State - In-memory pair holding the active OTA manifest and its executable
.wasmbytes. - OtaManifest
- Signed Dynamic WASM OTA manifest served at
/__euv_ota/manifest.json. - Publish
Report - Summary report emitted by
euv update publishandeuv update rollback. - Scaffold
Report - Result summary emitted after scaffolding a new euv project via
euv new. - Server
Bind Args - Shared local HTTP dev server bind, watcher poll interval, and smoke-run arguments.
- Stage
Report - Summary report emitted by
euv update stage. - Stored
Release Event - Persisted bounded event record written to
state/events/<project>/<channel>.jsonl. - Target
Readiness - Installed toolchain status for a single Rust cross-compilation target.
- Target
Spec - Target platform metadata describing Rust triple, system APIs, and output bundle.
- Update
Server Config - Configuration for the read-only Hyperlane HTTP + SSE update server (never holds signing keys).
- Update
Server Handle - Running handle to a live Hyperlane HTTP + SSE update server with clean programmatic shutdown.
- Update
Server Report - Machine-readable report emitted by
euv update serve. - Update
Server State - Shared state mounted into Hyperlane routes for read-only manifest, blob, and SSE delivery.
- Update
Store - Local filesystem update store managing
staging/,blobs/sha256/,releases/,channels/, andstate/. - Update
Store Status - Complete status snapshot emitted by
euv update status. - Watch
Snapshot - Recursive file tree snapshot capturing stamps for all watched source files.
Enums§
- Byte
Range Spec - Parsed HTTP byte-range specification for
GET /v1/blobs/{sha256}. - Commands
- Top-level
euvCLI subcommands. - DevTarget
Arg - Target mode for the
euv devhot-reload and OTA development server. - Docs
Action - Subcommands under
euv docsfor building or live-serving project Markdown documentation. - Harmony
Form Factor Arg - Optional HarmonyOS / OpenHarmony device form factor selector for
euv build --target harmony. - HmrEvent
Kind - Classification of live hot-reload events broadcast over SSE (
/__euv_hmr). - Render
Arg - CLI render pipeline mode selector.
- Target
Arg - CLI target selector covering all 23 supported euv platforms plus
nativeandall. - Update
Action - Subcommands under
euv updatefor operating the Hyperlane HTTP + SSE dynamic update server and local store.
Constants§
- DEFAULT_
DEV_ HOST - Default local bind host for
euv devandeuv docs dev. - DEFAULT_
DOCS_ OUT_ DIR - Default static documentation output directory.
- DEFAULT_
UPDATE_ EVENT_ LOG_ CAP - Default maximum retained events in each bounded channel event log (
state/events/). - DEFAULT_
UPDATE_ HEARTBEAT_ MS - Default SSE heartbeat interval in milliseconds for
euv update serve. - DEFAULT_
UPDATE_ SERVER_ HOST - Default bind host for
euv update serve. - DEFAULT_
UPDATE_ SERVER_ PORT - Default bind port for
euv update serve. - DEFAULT_
UPDATE_ WATCH_ POLL_ MS - Default background filesystem pointer watcher poll interval in milliseconds.
- 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
.wasmmodule over HTTP. - OTA_
SLOT_ DEV - Default component slot targeted by local dev OTA hot updates.
- STORE_
DIR_ BLOBS - Subdirectory holding immutable SHA-256 content-addressed blobs (
blobs/sha256/). - STORE_
DIR_ CHANNELS - Subdirectory holding atomically swapped channel active pointers (
channels/). - STORE_
DIR_ EVENTS - Subdirectory holding bounded per-channel JSONL event logs under
state/. - STORE_
DIR_ RELEASES - Subdirectory holding immutable signed release manifests (
releases/). - STORE_
DIR_ SHA256 - Hash algorithm subdirectory beneath
blobs/. - STORE_
DIR_ STAGING - Subdirectory holding staged artifacts prior to atomic publish.
- STORE_
DIR_ STATE - Subdirectory holding writer lock and bounded event history (
state/). - STORE_
DIR_ TRACKS - Subdirectory holding per-track active pointers under a channel directory.
- TRIPLE_
ANDROID - Rust target triple for Android ARM64 NDK and Wear OS builds.
- TRIPLE_
HARMONY - Rust target triple for HarmonyOS / OpenHarmony ARM64 native 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_
VELA - Rust target triple for Xiaomi Vela / embedded Linux ARM wearable builds.
- TRIPLE_
WATCHOS - Rust target triple for Apple watchOS ARM64 device builds.
- TRIPLE_
WEB - Rust target triple for WebAssembly browser, Mini-Program, and QuickApp 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.
- UPDATE_
ROUTE_ BLOB - Hyperlane route template serving immutable content-addressed SHA-256 blobs with Range support.
- UPDATE_
ROUTE_ EVENTS - Hyperlane route template streaming minimal
release.activatedSSE notifications withLast-Event-IDreplay. - UPDATE_
ROUTE_ MANIFEST - Hyperlane route template serving protocol/ABI-negotiated signed release manifests.
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
.mdfiles beneathsrc_dirintoout_dir. - collect_
doctor_ report - Inspects the local Rust toolchain, installed cross-platform targets, and SDKs across all 23 targets.
- execute_
cli - Dispatches a parsed
Clicommand and returns formatted output text. - format_
doctor_ report - Formats a
DoctorReportas human-readable terminal lines. - format_
euv_ macros_ in_ source - Formats all
euvprocedural macro bodies (view!,style!,design_tokens!,state!, etc.) in a single Rust source string deterministically and idempotently. - format_
workspace_ macros - Formats all
.rsfiles underroot(or a single.rsfile) in place or in--checkmode. - 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-Typeheader 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.htmland.wasm. - parse_
http_ byte_ range - Parses an HTTP
Range: bytes=start-[end]header against a blob oftotal_lenbytes. - register_
update_ routes - Registers the three read-only dynamic update routes onto an embeddable Hyperlane
Server. - resolve_
build_ plans - Generates declarative cross-platform build plans for
targetusing the default phone form factor for HarmonyOS. - resolve_
build_ plans_ with_ form_ factor - Generates declarative cross-platform build plans for
targetwith explicit HarmonyOS device form factor selection. - resolve_
check_ steps - Builds deduplicated
cargo check --target <triple>steps fortarget. - resolve_
run_ step - Builds a single run command step for
targetandrender. - resolve_
run_ step_ with_ form_ factor - Builds a single run command step for
targetwith explicit HarmonyOS form factor forwarding. - resolve_
target_ specs - Returns the canonical
TargetSpeclist for a CLITargetArg. - run_
dev_ blocking - Starts the dev server and either exits immediately (
once=true) or serves continuously until interrupted. - run_
unified_ base_ fmt - Runs
crate-cli’s unified Prettier-aligned text, derive, and Rust formatting pass beforeeuvmacro normalization. - run_
update_ server_ blocking - Runs the Hyperlane HTTP + SSE update server in blocking CLI mode (or exits immediately when
--onceis set). - scaffold_
project - Scaffolds a lean cross-platform
euvproject insideparent_dir/<name>. - spec_
for_ platform - Returns the
TargetSpecfor a single concrete platform target. - sse_
topic_ for_ channel - Formats the Hyperlane SSE topic name isolating events per
(project, channel). - start_
dev_ server - Starts a live HTTP, SSE hot-reload, file-watcher, and Dynamic WASM OTA dev server in background threads.
- start_
update_ server - Starts a live read-only Hyperlane HTTP + SSE update server with a background pointer watcher.
- target_
triple_ for_ host - Resolves the preferred Rust target triple for
target, adapting native desktop triples to host CPU architecture. - validate_
store_ identifier - Validates that a store path component (
project,channel,track,stage_id) contains no traversal or slashes.