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, Hyperlane HTTP/SSE dynamic update server, Markdown documentation site builder, cross-target check, formatting, environment diagnostics, and project scaffolding across all supported platforms.

Structs§

BlobRouteHook
Hyperlane ServerHook serving GET /v1/blobs/{sha256} with Range resume support.
BuildPlan
Complete declarative build plan for one target platform.
BuildStep
Single executable command step inside a cross-platform BuildPlan.
ChannelPointer
Atomically swapped active release pointer persisted in channels/<project>/<channel>/active.json.
ChannelStatusEntry
Status summary for a single project/channel inside UpdateStoreStatus.
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.
EventsRouteHook
Hyperlane ServerHook streaming GET /v1/projects/{project}/channels/{channel}/events via hyperlane-plugin-sse.
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 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.
ManifestRouteHook
Hyperlane ServerHook serving GET /v1/projects/{project}/channels/{channel}/manifest.
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.
PublishReport
Summary report emitted by euv update publish and euv update rollback.
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.
StageReport
Summary report emitted by euv update stage.
StoredReleaseEvent
Persisted bounded event record written to state/events/<project>/<channel>.jsonl.
TargetReadiness
Installed toolchain status for a single Rust cross-compilation target.
TargetSpec
Target platform metadata describing Rust triple, system APIs, and output bundle.
UpdateServerConfig
Configuration for the read-only Hyperlane HTTP + SSE update server (never holds signing keys).
UpdateServerHandle
Running handle to a live Hyperlane HTTP + SSE update server with clean programmatic shutdown.
UpdateServerReport
Machine-readable report emitted by euv update serve.
UpdateServerState
Shared state mounted into Hyperlane routes for read-only manifest, blob, and SSE delivery.
UpdateStore
Local filesystem update store managing staging/, blobs/sha256/, releases/, channels/, and state/.
UpdateStoreStatus
Complete status snapshot emitted by euv update status.
WatchSnapshot
Recursive file tree snapshot capturing stamps for all watched source files.

Enums§

ByteRangeSpec
Parsed HTTP byte-range specification for GET /v1/blobs/{sha256}.
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.
HarmonyFormFactorArg
Optional HarmonyOS / OpenHarmony device form factor selector for euv build --target harmony.
HmrEventKind
Classification of live hot-reload events broadcast over SSE (/__euv_hmr).
RenderArg
CLI render pipeline mode selector.
TargetArg
CLI target selector covering all 27 supported euv platforms plus native and all.
UpdateAction
Subcommands under euv update for operating the Hyperlane HTTP + SSE dynamic update server and local store.

Constants§

DEFAULT_DEV_HOST
Default local bind host for euv dev and euv 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 .wasm module 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.activated SSE notifications with Last-Event-ID replay.
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 .md files beneath src_dir into out_dir.
collect_doctor_report
Inspects the local Rust toolchain, installed cross-platform targets, and SDKs across all 27 targets.
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!, design_tokens!, state!, 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.
parse_http_byte_range
Parses an HTTP Range: bytes=start-[end] header against a blob of total_len bytes.
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 target using the default phone form factor for HarmonyOS.
resolve_build_plans_with_form_factor
Generates declarative cross-platform build plans for target with explicit HarmonyOS device form factor selection.
resolve_check_steps
Builds deduplicated cargo check --target <triple> steps for target.
resolve_run_step
Builds a single run command step for target and render.
resolve_run_step_with_form_factor
Builds a single run command step for target with explicit HarmonyOS form factor forwarding.
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.
run_unified_base_fmt
Runs crate-cli’s unified Prettier-aligned text, derive, and Rust formatting pass before euv macro normalization.
run_update_server_blocking
Runs the Hyperlane HTTP + SSE update server in blocking CLI mode (or exits immediately when --once is set).
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.
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.