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§
- Build
Plan - Complete declarative build plan for one target platform.
- Build
Step - Single executable command step inside a cross-platform
BuildPlan. - 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. - 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 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.
- 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. - 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.
- 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.
- Watch
Snapshot - Recursive file tree snapshot capturing stamps for all watched source files.
Enums§
- 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. - 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 seven euv platforms plus
nativeandall.
Constants§
- DEFAULT_
DEV_ HOST - Default local bind host for
euv devandeuv 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
.wasmmodule 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
.mdfiles beneathsrc_dirintoout_dir. - collect_
doctor_ report - Inspects the local Rust toolchain, installed 7-platform targets, and SDKs.
- 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!,tokens!, 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. - resolve_
build_ plans - Generates declarative cross-platform build plans for
target. - resolve_
check_ steps - Builds deduplicated
cargo check --target <triple>steps fortarget. - resolve_
run_ step - Builds a single
cargo runstep fortargetandrender. - 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. - scaffold_
project - Scaffolds a lean cross-platform
euvproject insideparent_dir/<name>. - spec_
for_ platform - Returns the
TargetSpecfor 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.