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, project scaffolding, shell completions, and live/artifact inspection.

Structs§

AiSchemaScanReport
Binary scan report proving whether dev-only AI schema markers leaked into an artifact.
AndroidBuildConfig
Configuration for building a native Rust + JNI Android or Wear OS APK.
AndroidBuildReport
Machine-readable report produced after generating or building an Android / Wear OS APK.
AndroidToolchain
Resolved Android SDK, NDK, and build-tools executables discovered on the host machine.
AppleBuildConfig
Configuration for building an iOS, iPadOS, or watchOS .app bundle in pure Rust.
AppleBuildReport
Machine-readable report produced after generating or building an Apple .app bundle.
BlobRouteHook
Hyperlane ServerHook serving GET /v1/blobs/{sha256} with Range resume support.
BuildBeforeSwapController
Deterministic state machine tracking zero-flicker build-before-swap transitions for native targets.
BuildPipelineConfig
Unified multi-platform build pipeline configuration resolved from CLI flags and optional euv.toml.
BuildPipelineReport
Aggregate multi-platform build summary produced by execute_build_pipeline.
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.
CleanEntry
One cleaned (or planned) build artifact or cache directory entry.
CleanOptions
Execution options for euv clean.
CleanReport
Structured summary report emitted by euv clean.
Cli
Root CLI parser for the euv cross-platform native toolchain.
CommandRunMetrics
Metrics returned after executing a child command via run_command_streaming.
DebouncedWatcher
Coalescing debounced file-change accumulator preventing redundant rebuild bursts on multi-file saves.
DesktopBuildConfig
Configuration for building, verifying, staging, and archiving a desktop or terminal client.
DesktopBuildReport
Structured summary returned by build_desktop_client.
DevServerConfig
Configuration for starting a live hot-reload and v1 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.
DistFileStat
File path and byte length record inside a DistInspectReport.
DistInspectReport
Audit summary of a local release artifact directory (euv-release.json, SHA-256, zero-JS check, sizes).
DocsBuildArgs
Shared documentation source, output, title, base URL, and WASM site build arguments.
DoctorFixResult
Outcome of one automated rustup target add action executed by euv doctor --fix.
DoctorReport
Complete environment readiness report produced by euv doctor.
DynamicWasmValidation
Sandbox and ABI verification summary for a dynamic .wasm widget binary.
EmbeddedOtaResponse
Protocol-level HTTP response returned by the embeddable v1 OTA request handler mounted inside euv dev.
EuvAppConfig
[app] section of an euv.toml project manifest.
EuvBuildConfig
[build] section of an euv.toml project manifest.
EuvDocsConfig
[docs] section of an euv.toml project manifest.
EuvOtaConfig
[ota] section of an euv.toml project manifest.
EuvProjectConfig
Root parsed representation of an euv.toml project configuration file.
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.
FullDoctorReport
Comprehensive environment and 38-target readiness report produced by the upgraded euv doctor.
HarmonyBuildConfig
Configuration for generating and compiling a HarmonyOS / OpenHarmony Stage-Model project.
HarmonyBuildReport
Report emitted after generating or compiling a HarmonyOS / OpenHarmony project.
HealthRouteHook
Hyperlane ServerHook serving GET /healthz JSON health and update store diagnostics.
HmrEvent
Structured live-reload notification broadcast over SSE /__euv_hmr.
HmrHub
Shared concurrent state coordinating SSE reload notifications, OTA bundles, and server shutdown.
HostCapabilityProbe
Snapshot of host OS, architecture, installed Rust targets, SDK paths, and CLI build tools.
KeygenReport
Generated HMAC-SHA256 signing secret summary emitted by euv update keygen.
LiveInspectReport
Live inspection snapshot collected from a running DevAutomationBridge.
LoadedEuvConfig
Loaded euv.toml paired with its discovered filesystem location.
ManifestRouteHook
Hyperlane ServerHook serving GET /v1/projects/{project}/channels/{channel}/manifest.
MiniAppBuildConfig
Configuration for generating and packaging MiniApp vendor hosts (13 ecosystems).
MiniAppBuildReport
Report produced after building one or more MiniApp vendor projects.
OtaArtifactDiff
Per-artifact comparison entry inside OtaReleaseDiff.
OtaBuildConfig
Configuration for compiling, validating, and optionally pushing a Rust dynamic WASM widget crate.
OtaBuildReport
Summary report emitted by euv update build.
OtaBundleState
In-memory pair holding the active OTA manifest and its executable .wasm bytes.
OtaDevConfig
Configuration for the unified single-command euv update dev serve-and-watch loop.
OtaDevReport
Machine-readable report emitted by euv update dev.
OtaGcConfig
Configuration controlling safe update store garbage collection (euv update gc).
OtaGcReport
Summary report emitted by euv update gc.
OtaInitConfig
Configuration for initializing an update store and optional euv-ota.json project config.
OtaInitReport
Summary report emitted by euv update init.
OtaManifest
Signed Dynamic WASM OTA manifest served at /__euv_ota/manifest.json.
OtaProjectConfig
Persisted project OTA configuration written to euv-ota.json (never stores raw signing secrets).
OtaReleaseDiff
Structured comparison between two release sequences (from_seq -> to_seq) emitted by euv update diff.
OtaVerifyConfig
Configuration controlling offline cryptographic and blob integrity verification (euv update verify).
OtaVerifyIssue
Individual integrity finding recorded during euv update verify.
OtaVerifyReport
Complete offline integrity audit report emitted by euv update verify.
PublishReport
Summary report emitted by euv update publish and euv update rollback.
QuickAppBuildConfig
Configuration for generating and packaging QuickApp vendor projects (alliance, huawei).
QuickAppBuildReport
Report produced after building one or more QuickApp vendor projects.
ReleaseAssetManifest
Deterministic SHA-256 inventory manifest written to euv-release.json.
ReleaseManifestFileEntry
Single verified asset record inside euv-release.json.
RgbaImage
Decoded 8-bit straight-alpha RGBA image buffer used for pure-Rust icon resizing and encoding.
ScaffoldOptions
Parameters governing modern euv new project scaffolding.
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.
SharedWasmHostArtifacts
Output paths produced by compiling the shared zero-DOM WebAssembly host core.
SharedWasmHostConfig
Configuration for building the shared zero-SIMD WebAssembly host core (euv_app.wasm + CJS/ESM glue).
StageReport
Summary report emitted by euv update stage.
StepTiming
Timing and status record for one CLI execution step.
StoredReleaseEvent
Persisted bounded event record written to state/events/<project>/<channel>.jsonl.
TarEntryInput
Single file or directory entry to write into a pure-Rust .tar.gz archive.
TargetBuildOutcome
Execution outcome recorded for one target inside BuildPipelineReport.
TargetCapability
Per-target build readiness assessment on the active host machine.
TargetReadiness
Installed toolchain status for a single Rust cross-compilation target.
TargetSpec
Target platform metadata describing Rust triple, system APIs, and output bundle.
TerminalTable
Pure-Rust aligned terminal table builder for human-first CLI summaries.
ThemeVariantBuildReport
Structured summary returned by build_web_theme_variants.
ToolProbeEntry
Readiness report for one external CLI tool or SDK environment variable.
UpdateHealthResponse
JSON health and store status payload emitted by GET /healthz.
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.
WearableBuildConfig
Configuration for generating and building smartwatch wearable hosts across 8 ecosystems.
WearableBuildReport
Report produced after building one or more smartwatch wearable targets.
WebBuildConfig
Configuration for pure-Rust WebAssembly zero-JS, raw-WASM, and theme-variant builds.
WebBuildReport
Structured summary returned by build_web_bundle.
WebPackageMetadata
Resolved Cargo package metadata needed for WebAssembly compilation and version verification.
WorkspaceMetadata
Dynamic Cargo workspace metadata resolved directly from Cargo.toml and Cargo.lock.
WorkspacePackageInfo
Resolved package metadata for one Cargo workspace member or standalone crate.
ZipEntryInput
Single file entry to write into a pure-Rust PKZIP archive.

Enums§

AndroidAbi
Android native CPU ABI supported by the NDK compilation pipeline.
AndroidTargetKind
Android device form factor supported by the native APK builder.
AppleTargetKind
Apple mobile and wearable targets supported by the pure-Rust Apple bundle builder.
ByteRangeSpec
Parsed HTTP byte-range specification for GET /v1/blobs/{sha256}.
Commands
Top-level euv CLI subcommands.
DesktopTargetKind
Desktop and terminal build targets handled by cli/src/builder/desktop/.
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.
HarmonyAbi
OpenHarmony native CPU ABI supported by N-API/XComponent/EGL compilation.
HarmonyDeviceKind
HarmonyOS / OpenHarmony device form factor profiles supported by the Stage-Model builder.
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).
MiniAppVendor
All 13 supported super-app MiniApp ecosystem targets.
ProjectTemplateArg
Project scaffolding template selector for euv new --template.
QuickAppVendor
QuickApp distribution targets supported by the pure-Rust QuickApp builder.
RenderArg
CLI render pipeline mode selector.
ShellKindArg
Shell type selector for euv completions <shell>.
StatusBadge
Status indicator badge emitted in human-readable CLI summaries and tables.
SwapOutcome
Outcome returned by the zero-flicker build-before-swap native rebuild controller.
TargetArg
CLI target selector covering all 38 concrete euv targets plus target groups (desktop, mobile, apple, terminal, harmony-all, wearables, miniapps, quickapps, native, all).
TargetBuildStatus
Completion status recorded for one concrete target inside a multi-platform build pipeline run.
TargetCategory
High-level ecosystem category assigned to each concrete euv target platform.
UpdateAction
Subcommands under euv update for operating the Hyperlane HTTP + SSE dynamic update server and local store.
WearableVendor
All 8 smartwatch wearable targets supported by the pure-Rust wearable builder.

Constants§

ANDROID_MIPMAP_SPECS
Android and Wear OS mipmap launcher icon specifications (density_dir, pixel_size).
ARCHIVE_DEFAULT_DIR_MODE
Default UNIX directory permission mode stored in archives.
ARCHIVE_DEFAULT_FILE_MODE
Default UNIX file permission mode stored in archives for regular files.
ARCHIVE_EXECUTABLE_FILE_MODE
Default UNIX file permission mode stored in archives for executable binaries.
CARGO_LOCK_NAME
Cargo lockfile name inspected for locked dependency versions such as wasm-bindgen.
CRATE_WASM_BINDGEN
Default fallback crate name when discovering the wasm-bindgen runtime version in Cargo.lock.
DEFAULT_BRAND_LOGO_DATA_URI
Self-contained lossless 96x96 PNG data:image/png;base64,... URI for the canonical Euv brand logo.
DEFAULT_DEV_DEBOUNCE_MS
Default file watcher debounce window in milliseconds.
DEFAULT_DEV_HOST
Default local bind host for euv dev and euv docs dev.
DEFAULT_DEV_OTA_CHANNEL
Default v1 OTA release channel mounted inside euv dev.
DEFAULT_DEV_OTA_PROJECT
Default v1 OTA project identifier mounted inside euv dev.
DEFAULT_DOCS_OUT_DIR
Default static documentation output directory.
DEFAULT_OTA_CONFIG_FILE
Default project OTA configuration filename written by euv update init.
DEFAULT_OTA_DEV_CHANNEL
Default development release channel name.
DEFAULT_OTA_GC_KEEP_RELEASES
Default number of most recent releases retained per channel during euv update gc.
DEFAULT_OTA_PROD_CHANNEL
Default production release channel name.
DEFAULT_OTA_PROJECT_NAME
Default logical project identifier for OTA operations.
DEFAULT_OTA_SIGNING_KEY_ENV
Default environment variable name holding the offline HMAC-SHA256 signing secret.
DEFAULT_UPDATE_ACCENT_RGB
Default RGB accent color used for inline euv update push --title hot-update cards.
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_ROUTE
Default target route path updated by euv update push when neither --route nor --slot is given.
DEFAULT_UPDATE_SERVER_HOST
Default bind host for euv update serve.
DEFAULT_UPDATE_SERVER_PORT
Default bind port for euv update serve.
DEFAULT_UPDATE_SLOT
Default target component slot identifier updated by euv update push when neither --route nor --slot is given.
DEFAULT_UPDATE_STORE_PATH
Default local filesystem store root directory used across CLI and UpdateServerConfig.
DEFAULT_UPDATE_WATCH_POLL_MS
Default background filesystem pointer watcher poll interval in milliseconds.
DEFAULT_WRITER_LOCK_STALE_SECS
Default staleness threshold in seconds before an abandoned writer.lock is reclaimed.
DESKTOP_CLI_BIN_NAME
Default CLI binary stem (euv / euv.exe).
DESKTOP_CLI_PACKAGE
CLI package name bundled alongside the desktop showcase when include_cli is enabled.
DESKTOP_DEFAULT_APP_PACKAGE
Default showcase package name built for GUI/TUI desktop clients.
DESKTOP_ICON_LINUX
Linux 512px PNG icon filename placed into staged desktop output directories.
DESKTOP_ICON_LINUX_SIZE
Linux desktop icon pixel dimension.
DESKTOP_ICON_MACOS
macOS icon filename placed into staged desktop output directories.
DESKTOP_ICON_WINDOWS
Windows icon filename placed into staged desktop output directories.
DEV_OTA_CLIENT_CACHE_SUBDIR
Default relative on-device cache subdirectory injected via EUV_UPDATE_CACHE_DIR.
DEV_OTA_STORE_SUBDIR
Default relative store directory used when DevServerConfig::ota_store_dir is unset.
DEV_STATUS_ENDPOINT
JSON health and revision status endpoint for local tooling and CI probes.
ENV_APP_ICON
Environment variable specifying an optional custom PNG app icon path.
ENV_DEV_UPDATE_SIGNING_KEY
Environment variable injected into child processes carrying the active dev OTA signing key.
ENV_SKIP_WASM_OPT
Environment variable disabling the optional wasm-opt pass when set to "1".
EUV_TOML_NAME
Canonical project manifest filename discovered by euv commands.
HMR_ENDPOINT
Server-Sent Events endpoint streaming live reload and hot-update notifications.
HMR_ERROR_OVERLAY_ID
HTML element ID of the dismissible browser HMR build-error overlay.
ICNS_ICON_SPECS
macOS ICNS modern PNG chunk descriptors (chunk_tag, pixel_size).
ICO_ICON_SIZES
Windows ICO embedded PNG square sizes matching scripts/env/generate-icon.py.
IOS_BUNDLE_ICON_SPECS
iOS and iPadOS .app bundle icon specifications (filename, pixel_size).
OTA_CONFIG_SCHEMA_V1
Current schema version for euv-ota.json project configuration files.
OTA_DEV_SIGNING_KEY
Shared signing key used for local dev OTA hot-update verification.
OTA_KEYGEN_BIT_LENGTH
Bit length of generated HMAC-SHA256 signing secrets.
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.
PIPELINE_STATUS_FAILED
Canonical status label for a target build that exited with an error.
PIPELINE_STATUS_PASSED
Canonical status label for a target build that completed successfully.
PIPELINE_STATUS_SKIPPED
Canonical status label for a target skipped because host OS or SDK prerequisites are missing.
PNG_DATA_URI_PREFIX
Data-URI prefix prepended to Base64-encoded PNG brand icons.
RELEASE_MANIFEST_FORMAT
Current schema format version of euv-release.json.
RELEASE_MANIFEST_NAME
Canonical filename for the deterministic SHA-256 release inventory manifest.
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_IOS_SIM
Rust target triple for iOS and iPadOS ARM64 Simulator 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_HEALTHZ
Hyperlane route serving JSON health and store status diagnostics.
UPDATE_ROUTE_MANIFEST
Hyperlane route template serving protocol/ABI-negotiated signed release manifests.
WEB_BUNDLE_ICON_SPECS
Web showcase bundle icon specifications (filename, pixel_size).
WEB_DEFAULT_ASSET_BASE
Default portable relative asset base URL prefix.
WEB_DEFAULT_OUT_DIR
Default output directory for WebAssembly bundles.
WEB_DEFAULT_PACKAGE
Default showcase package name built by build_web_bundle.
WEB_DEFAULT_TITLE
Default HTML document title for generated zero-JS WebAssembly bundles.
WEB_RAW_ICON_SPECS
Raw Web WASM artifact icon specifications (filename, pixel_size).

Functions§

adler32_bytes
Computes the RFC 1950 Adler-32 checksum used inside zlib streams and PNG IDAT chunks.
append_entries_to_zip
Appends or replaces entries inside an existing ZIP archive (e.g. packing stored .dex/.so into an APK).
append_stored_entries_to_zip
Appends uncompressed (STORED, method 0) entries to an existing ZIP archive in pure Rust.
archive_directory_auto
Archives source_dir into either .zip or .tar.gz automatically based on output_archive extension.
archive_directory_to_tar_gz
Recursively archives source_dir into a deterministic pure-Rust .tar.gz archive.
archive_directory_to_zip
Recursively archives all files in source_dir into a deterministic pure-Rust PKZIP file.
assert_release_binary_ai_schema_clean
Verifies that a compiled release binary contains zero dev-only AI schema markers.
build_android_apk
Builds, aligns, signs, verifies, and optionally installs an Android or Wear OS APK in pure Rust.
build_apple_bundle
Builds, strips, signs, verifies, optionally archives, and optionally launches an Apple .app bundle.
build_cargo_fmt_args
Constructs cargo fmt arguments forwarding --manifest-path to support external directories cleanly.
build_child_dev_env
Computes the exact environment variables injected into native/mobile/web child processes launched by euv dev.
build_desktop_client
Builds, optionally smoke-tests and AI-schema-verifies, stages, and archives a desktop or terminal client.
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.
build_dynamic_wasm_widget
Compiles a Rust dynamic widget crate targeting wasm32-unknown-unknown, validates its host ABI and sandbox constraints, writes the .wasm artifact, and optionally publishes it to a local UpdateStore.
build_harmony_app
Generates and optionally compiles/packages/installs a HarmonyOS / OpenHarmony Stage-Model app.
build_health_response
Builds a JSON-serializable health and store summary response for GET /healthz.
build_miniapp_targets
Builds one or all 13 MiniApp vendor targets, sharing a single zero-DOM WASM core build across JS ecosystems.
build_quickapp_targets
Builds one or both QuickApp vendor targets (alliance, huawei) in pure Rust.
build_shared_wasm_host
Compiles the shared zero-SIMD WebAssembly host core (euv_app.wasm + CJS/ESM glue) in pure Rust.
build_wearable_targets
Builds one or all 8 smartwatch wearable ecosystems, routing native targets to Android/Apple/Harmony builders.
build_web_bundle
Builds a complete zero-JS WebAssembly bundle or --raw-wasm artifact in pure Rust.
build_web_rustflags
Composes RUSTFLAGS for wasm32-unknown-unknown preserving bulk-memory, getrandom_backend="wasm_js", and simd128.
build_web_theme_variants
Builds default plus every theme-* feature variant with deterministic SHA-256 source fingerprint caching.
category_for_target
Returns the ecosystem TargetCategory for a concrete TargetArg.
collect_doctor_report
Inspects the local Rust toolchain, installed cross-platform targets, and SDKs across all 36 production targets.
collect_full_doctor_report
Collects a full toolchain and 38-target readiness report by probing the active host environment.
collect_full_doctor_report_from_probe
Builds a FullDoctorReport deterministically from a pre-collected HostCapabilityProbe.
compute_ieee_crc32
Computes the standard IEEE 802.3 CRC-32 checksum for data.
compute_semver_version_code
Computes a deterministic monotonic numeric version code (major * 10000 + minor * 100 + patch).
compute_workspace_source_fingerprint
Computes a deterministic SHA-256 fingerprint across workspace manifests and Rust source trees.
count_ai_schema_markers
Counts occurrences of dev-only euv.ai.schema.v1 and euv.ai.schema.v2 markers in binary bytes.
crc32_bytes
Computes the standard IEEE 802.3 CRC-32 checksum used by PNG, PKZIP, and GZIP.
create_builder_dev_rebuild_hook
Builds a DevRebuildHook invoking pure-Rust builder::{web,ecosystem} engines for euv dev.
decode_base64
Decodes a standard RFC 4648 Base64 string into raw bytes.
decode_png_rgba
Decodes a non-interlaced PNG image (grayscale, RGB, palette+tRNS, gray+alpha, RGBA) to RgbaImage.
default_brand_logo_png_bytes
Returns the embedded lossless 96x96 canonical Euv brand PNG bytes with zero network access.
deflate_compress
Compresses raw bytes into an RFC 1951 raw DEFLATE bitstream.
deflate_decompress
Decompresses an RFC 1951 raw DEFLATE bitstream (stored, fixed Huffman, and dynamic Huffman).
detect_android_toolchain
Detects the Android SDK, NDK, and build-tools executables from environment variables and standard paths.
detect_lan_ip_addresses
Discovers non-loopback local LAN IPv4 addresses so real mobile devices and emulators can connect to local OTA/dev servers.
diff_ota_releases
Computes a structured metadata, route, and blob-size diff between two release sequences.
encode_base64
Encodes raw bytes as standard RFC 4648 Base64 ASCII text.
encode_icns_from_rgba
Encodes a multi-resolution macOS .icns container (icp4..ic10, 16..1024 PNG chunks).
encode_ico_from_rgba
Encodes a multi-resolution Windows .ico container (16, 32, 48, 64, 128, 256 PNG frames).
encode_png_rgba
Encodes an RgbaImage as an 8-bit RGBA PNG byte vector using pure Rust zlib and CRC-32.
etag_matches_if_none_match
Checks whether an HTTP If-None-Match header matches current_etag (supporting *, weak W/, and comma-separated lists).
execute_build_pipeline
Executes the multi-platform build pipeline against the live host toolchain capability probe.
execute_build_pipeline_with_probe
Executes the multi-platform build pipeline using an explicit HostCapabilityProbe snapshot.
execute_clean
Cleans dist/, target/mobile-hosts/, target/euv-icon-cache/, stale .euv-updates/staging/, and optionally cargo clean.
execute_cli
Dispatches a parsed Cli command and returns formatted output text.
expand_target_arg
Expands a single TargetArg (concrete target, native, or target group) into concrete targets.
find_euv_config_path
Walks up from start_dir searching for the nearest euv.toml project configuration file.
format_build_pipeline_report
Formats a BuildPipelineReport into an aligned TerminalTable summary with skip install hints.
format_bytes_human
Formats a raw byte count into binary human units (B, KiB, MiB, GiB).
format_clean_report
Formats a CleanReport into a crisp human-readable terminal table.
format_dist_inspect_report
Formats a DistInspectReport into an aligned terminal summary.
format_doctor_report
Formats a DoctorReport as human-readable terminal lines.
format_duration_ms
Formats an elapsed duration in milliseconds into a concise human-readable token (42ms, 1.25s, 2m 05s).
format_euv_macros_in_source
Formats all euv procedural macro bodies (view!, style!, var!, state!, etc.) in a single Rust source string deterministically and idempotently.
format_full_doctor_report
Formats a FullDoctorReport into aligned terminal tables showing tool readiness, targets, and fix actions.
format_live_inspect_report
Formats a LiveInspectReport for terminal display.
format_scaffold_report
Formats a human-readable summary of a freshly scaffolded euv project.
format_step_summary
Renders a list of StepTiming entries as an aligned summary table with totals.
format_targets_table
Formats a slice of TargetCapability entries into an aligned readiness matrix table.
format_workspace_macros
Formats all .rs files under root (or a single .rs file) in place or in --check mode.
gc_ota_store
Safely garbage-collects unreferenced releases, orphan blobs, and stale staging directories.
generate_android_host_project
Generates the complete standalone Android or Wear OS host project (Rust crate, JNI Java bridge, manifest, styles, icons).
generate_apple_host_project
Generates the standalone Apple host crate (staticlib), Objective-C/Swift entry files, Info.plist, and icons.
generate_completions
Generates a pure-Rust shell tab-completion script for shell covering all euv subcommands, targets, groups, and flags.
generate_harmony_atomic_project
Generates a HarmonyOS Atomic Service (bundleType=atomicService, installationFree=true, AtomicAbility).
generate_harmony_project
Generates a complete HarmonyOS / OpenHarmony Stage-Model + N-API + XComponent + EGL project tree.
generate_miniapp_project
Generates a single MiniApp vendor host project (wechat, alipay, …, or harmony-atomic).
generate_ota_keygen_report
Generates a structured KeygenReport for euv update keygen.
generate_quickapp_project
Generates a single QuickApp vendor project (alliance or huawei) with dynamic version and bridge JS.
generate_signing_key_hex
Generates a cryptographically strong 256-bit HMAC-SHA256 signing secret encoded as 64 lowercase hex characters.
gzip_compress
Compresses bytes into a standard RFC 1952 GZIP stream with CRC-32 and ISIZE trailers.
gzip_decompress
Decompresses an RFC 1952 GZIP stream and verifies its CRC-32 and ISIZE trailers.
handle_embedded_v1_ota_request
Handles read-only v1 OTA HTTP requests (/healthz, /v1/projects/{p}/channels/{c}/manifest, /v1/blobs/{sha256}) directly against store for embedding inside euv dev.
host_native_target
Resolves the host’s native TargetArg.
init_ota_store
Initializes an update store directory layout, generates a signing key if absent, and optionally writes euv-ota.json.
inject_dev_hmr_into_html
Injects the dev-only SSE hot-reload script right before </body> in an HTML document.
inspect_dist_directory
Audits a local build distribution directory for bundle sizes, zero-JS compliance, and euv-release.json SHA-256 integrity.
inspect_live_bridge
Queries a live DevAutomationBridge HTTP server for health, AI Schema snapshot, and 9-rule layout anomalies.
is_safe_release_relative_path
Validates that a forward-slash relative release path contains no traversal, control, or reserved segments.
is_valid_numeric_semver
Validates whether version matches strict numeric semantic versioning MAJOR.MINOR.PATCH.
load_euv_config
Loads and parses the nearest euv.toml from start_dir (returns Ok(None) in zero-config projects).
mime_type_for_path
Determines the HTTP Content-Type header for a static file path by extension.
normalize_web_asset_base
Normalizes a Web asset URL base prefix to match scripts/build/build-web.sh semantics.
package_web_bundle_directory
Packages a wasm-bindgen output directory into a verified zero-JS bundle (index.html, 404.html, .nojekyll, icons, euv-release.json).
package_zero_js_web_bundle
Packages a compiled WebAssembly output directory into a zero-JS-file bundle containing only index.html and .wasm.
parse_android_abi
Parses a user-supplied Android ABI string into an AndroidAbi discriminant.
parse_euv_toml
Parses an euv.toml text payload into an EuvProjectConfig without external TOML crate dependencies.
parse_harmony_device_kind
Parses a HarmonyOS device form factor label or alias into a HarmonyDeviceKind.
parse_http_byte_range
Parses an HTTP Range: bytes=start-[end] header against a blob of total_len bytes.
parse_miniapp_vendors
Parses a MiniApp vendor selector (or "all") into a list of MiniAppVendor values.
parse_quickapp_vendors
Parses a QuickApp vendor selector (all, quickapp, alliance, huawei) into QuickAppVendor entries.
parse_target_name_from_config
Parses a single target or group name from euv.toml into a TargetArg.
parse_v1_events_path
Parses an HTTP request path matching /v1/projects/{project}/channels/{channel}/events.
parse_wearable_vendors
Parses a wearable vendor selector (or "all") into a list of WearableVendor values.
patch_wasm_host_glue
Patches wasm-bindgen --target no-modules JS glue with TextDecoder/TextEncoder and vendor WASM polyfills.
push_hot_ota_artifact
Validates, signs, and publishes a .json DynamicNodeSpec, .wasm binary, or Rust widget crate into store without restarting the host app.
push_watched_ota_source
Publishes a watched .json spec, .wasm binary, or Rust widget crate directory directly into store.
register_update_routes
Registers the read-only dynamic update and health routes onto an embeddable Hyperlane Server.
render_android_manifest_xml
Renders the complete AndroidManifest.xml for an Android phone or Wear OS build.
render_ios_info_plist
Renders the universal iOS and iPadOS Info.plist with dynamic version and bundle identifier.
render_mode_const_expr
Maps a CLI RenderArg variant to its generated Rust RenderMode expression.
render_watchos_info_plist
Renders the standalone Apple watchOS Info.plist with dynamic version and bundle identifier.
render_zero_js_web_html
Renders the self-contained zero-JS index.html / 404.html document with preload hint, tap-highlight resets, and streaming splash loader.
resize_rgba
Resizes an RgbaImage cleanly using premultiplied-alpha box averaging (downscale) or bilinear interpolation (upscale).
resolve_all_concrete_targets
Returns all 38 concrete euv targets including ios-sim and ipad-sim simulators.
resolve_android_ndk_host_tag
Resolves the Android NDK prebuilt LLVM host directory tag for a given host OS name.
resolve_android_ndk_linker
Resolves the exact Android NDK clang linker executable for abi and api_level.
resolve_build_plans
Generates declarative cross-platform build plans for target using the default phone form factor for HarmonyOS.
resolve_build_plans_for_targets
Generates deduplicated declarative build plans for one or more targets and target groups.
resolve_build_plans_with_form_factor
Generates declarative cross-platform build plans for target with explicit HarmonyOS device form factor selection.
resolve_cargo_fmt_manifest_path
Resolves the explicit Cargo.toml manifest path for cargo fmt when target_root is a project directory or manifest file.
resolve_cargo_lock_package_version
Resolves the locked version of package_name from a Cargo.lock file.
resolve_check_steps
Builds deduplicated cargo check --target <triple> steps for target.
resolve_check_steps_many
Builds deduplicated cargo check --target <triple> steps across multiple targets, groups, and packages.
resolve_dev_ota_identity
Resolves the effective (project, channel, signing_key) tuple for config, applying sensible dev defaults when empty.
resolve_dev_ota_store_dir
Resolves the active v1 OTA store directory for config (defaults to <out_dir>/.euv-updates).
resolve_effective_package
Resolves the effective Cargo package name using precedence: CLI --package -> euv.toml -> workspace showcase/binary package.
resolve_effective_pipeline_jobs
Computes the bounded concurrency worker count for executing target_count targets.
resolve_effective_version
Resolves the effective application semantic version using precedence: CLI flag -> euv.toml -> workspace Cargo.toml -> CLI crate version.
resolve_icon_data_uri
Resolves an inline data:image/png;base64,... URI for HTML favicons and splash screens.
resolve_icon_png_bytes
Resolves source icon PNG bytes from explicit path, EUV_APP_ICON, or embedded default logo.
resolve_icon_rgba
Resolves and decodes the source icon into an RGBA8 raster image.
resolve_pipeline_targets
Resolves the ordered, deduplicated concrete targets for a pipeline invocation using CLI flags and euv.toml defaults.
resolve_production_targets
Returns the ordered list of all 36 production concrete targets expanded by TargetArg::All.
resolve_proxy_base_url
Resolves the external proxy-aware base URL from --proxy-base or incoming reverse-proxy headers (X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-Prefix).
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_static_file_with_spa
Resolves an HTTP request path safely within out_dir supporting clean URLs, index.html, and optional SPA route fallback.
resolve_target_specs
Returns the canonical TargetSpec list for a CLI TargetArg (concrete target, Native, All, or group).
resolve_target_specs_many
Returns deduplicated TargetSpec entries for multiple CLI targets and groups.
resolve_targets_dedup
Expands and deduplicates a slice of targets and groups while preserving first-seen order (defaults to [Native] when empty).
resolve_web_package_dir
Resolves the crate directory for package under src_dir so wasm-pack compiles the right workspace member.
resolve_web_package_metadata
Resolves dynamic package metadata, wasm-bindgen version, and theme-* features via cargo metadata.
resolve_workspace_metadata
Resolves dynamic Cargo workspace or package metadata by walking up from start_dir.
resolve_workspace_semver
Resolves the dynamic workspace semver from the workspace manifest.
run_cargo_fmt_for_root
Executes cargo fmt --manifest-path <path> --all for target_root when a Cargo.toml manifest exists.
run_command_streaming
Executes an external command with live streaming output (or inherited TTY) and records wall-clock elapsed timing.
run_dev_blocking
Starts the dev server and either exits immediately (once=true) or serves continuously until interrupted.
run_dev_blocking_with_hook
Starts the dev server with an optional ecosystem rebuild hook and serves continuously unless once=true.
run_doctor_fix
Runs rustup target add <triple> for every host-supported missing Rust target reported by probe.
run_ota_dev_blocking
Runs the unified single-command euv update dev Hyperlane OTA server + live file/crate watcher loop.
run_target_for_dev
Maps DevTargetArg to the exact TargetArg preserved when launching native, TUI, or CLI apps.
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>.
scaffold_with_options
Scaffolds a modern euv project matching options.template with valid keyless style!, view!, euv.toml, and .gitignore.
scan_bytes_for_ai_schema
Counts occurrences of euv.ai.schema.v1 and euv.ai.schema.v2 marker bytes in a slice.
scan_file_for_ai_schema
Scans an artifact file on disk for dev-only AI schema markers.
semver_to_version_code
Converts a semantic version string (e.g. "0.49.4" or "1.2.3-rc.1") into a deterministic positive numeric Android versionCode.
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).
stage_desktop_artifacts
Stages compiled desktop binaries, emits the native platform icon, and optionally writes a .tar.gz or .zip archive.
start_dev_server
Starts a live HTTP, SSE hot-reload, debounced file-watcher, and real v1 OTA dev server in background threads.
start_dev_server_with_hook
Starts a live hot-reload dev server with an optional pluggable ecosystem rebuild hook.
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.
transform_web_bindgen_glue
Strips ES module exports and rewrites import.meta.url WASM resolution inside wasm-bindgen glue JS.
validate_dynamic_wasm_bytes
Validates a dynamic .wasm binary against euv-core sandbox limits, euv_abi_version, and euv_render export contracts.
validate_store_identifier
Validates that a store path component (project, channel, track, stage_id) contains no traversal or slashes.
verify_no_ai_schema_leak
Verifies that a release artifact contains zero dev-only AI schema marker bytes.
verify_ota_store
Audits an update store offline for signature authenticity, pointer consistency, and SHA-256 blob integrity.
verify_release_manifest
Verifies euv-release.json schema, version, required assets, sizes, and SHA-256 digests on disk.
verify_zero_js_web_bundle
Verifies every release invariant on a zero-JS WebAssembly bundle directory.
write_android_mipmap_icons
Writes all five Android/Wear OS mipmap launcher icons (48..192px) under res_dir.
write_icon_icns
Writes a multi-resolution macOS .icns icon bundle to output_path.
write_icon_ico
Writes a multi-resolution Windows .ico icon file to output_path.
write_icon_or_fallback
Writes an icon PNG via the supplied callback or emits the embedded 1x1 transparent PNG fallback.
write_icon_png
Writes a square resized PNG icon of size x size pixels to output_path.
write_ios_bundle_icons
Writes all three iOS/iPadOS .app bundle icon PNGs (120, 180, 1024) into bundle_dir.
write_release_manifest
Generates and writes the deterministic SHA-256 euv-release.json manifest for dist_dir.
write_tar_gz_entries
Writes a deterministic pure-Rust gzipped POSIX ustar .tar.gz archive from explicit entries.
write_web_icons
Writes standard Web showcase icon PNGs (favicon.png, apple-touch-icon.png, euv-studio-logo-64.png, icon-64.png, icon-180.png).
write_web_raw_icons
Writes raw Web WASM artifact icons (favicon.png, apple-touch-icon.png, icon-64.png, icon-180.png).
write_zip_entries
Writes a pure-Rust PKZIP archive with per-entry stored (-0) or DEFLATE compression.
zlib_compress
Compresses bytes into a standard RFC 1950 zlib stream with Adler-32 trailer.
zlib_decompress
Decompresses an RFC 1950 zlib stream and validates its header and Adler-32 checksum.

Type Aliases§

DevRebuildHook
Pluggable callback invoked when euv dev rebuilds ecosystem targets (harmony, wearable, miniapp, quickapp).
MobileIconWriter
Callback signature writing a square PNG application icon at the requested pixel dimension.