Expand description
euv-cli
The official CLI tool for the euv UI framework, providing run/build/fmt modes with hot reload and wasm-pack integration.
Structs§
- Cli
- euv CLI for real-time WASM compilation and hot-reload development server.
- FmtArgs
- Arguments for the
fmtsubcommand. - Formatter
- Configuration for formatting.
- From
Utf8 Error - A possible error value when converting a
Stringfrom a UTF-8 byte vector. - HmrState
- A serializable bag of preserved state entries.
- Import
Clause - One static
importclause of the wasm-bindgen bridge, parsed into the bindings a self-contained bootstrap can reproduce. - Logger
- Custom logger implementation for the euv CLI.
- Mode
Args - euv-specific arguments combined with wasm-pack passthrough.
- OsStr
- Borrowed reference to an OS string (see
OsString).
Enums§
- Action
- The action to perform.
- Build
Mode - The build mode for wasm-pack compilation.
- EuvError
- The error type for the euv CLI application.
- FmtMode
- The formatting mode for the CLI.
- Mode
- The action to perform.
- Reload
Event - Represents the type of reload event sent to connected clients.
Traits§
- Display
- Format trait for an empty format,
{}. - Error
Erroris a trait representing the basic expectations for error values, i.e., values of typeEinResult<T, E>.
Functions§
- build_
mode - Executes the build-only pipeline.
- build_
mode_ to_ flag - Converts a
BuildModeto the corresponding wasm-pack flag string. - build_
wasm - Runs wasm-pack build for the target crate.
- clean_
out_ dir - Cleans the output directory before a fresh build.
- current_
dir - Returns the current working directory as a
PathBuf. - extract_
exported_ names - Scans a snippet module for every name it exports, so a namespace import
can be rebuilt as a plain object.
export function,export async function,export classandexport const|let|varall count. - filter_
euv_ args - Filters out euv-specific arguments from the wasm-pack arguments.
- fmt_
mode - Executes the format command.
- format_
dir - Formats all Rust source files in the given directory that contain euv macros.
- format_
euv_ macros - Finds and reformats all euv macro invocations in the source text.
- format_
macro_ body - Formats the body of a euv macro invocation.
- has_
build_ mode_ flag - Checks whether
wasm_pack_argsalready contains a build mode flag. - once
- Creates an iterator that yields an element exactly once.
- parse_
import_ clause - Parses one
importclause, rejecting shapes the inliner cannot model. - print_
banner - Prints the startup banner and command information.
- reconcile_
args - Reconciles euv-specific arguments that may have been collected into
wasm_pack_args(e.g. when placed after--) back into the correspondingModeArgsfields. - resolve_
build_ mode - Resolves the build mode from CLI arguments.
- resolve_
file_ in_ base - Resolves a file path within a base directory with path-traversal protection.
- resolve_
import_ path - Resolves the JS import path for HTML generation.
- resolve_
out_ dir - Resolves the output directory for wasm-pack artifacts.
- resolve_
out_ name - Resolves the output JS filename for HTML generation.
- resolve_
pkg_ dir - Resolves the pkg directory for serving WASM artifacts.
- resolve_
serving_ root - Resolves the serving root directory for the development server.
- resolve_
serving_ route_ prefix - Resolves the serving route prefix relative to the crate path.
- resolve_
www_ dir - Resolves the effective www directory, handling wasm-pack nested output.
- run_
build_ only_ pipeline - Formats euv macros, builds WASM, writes HTML, then removes generated glue.
- run_
build_ pipeline - Executes a full build pipeline: euv fmt, build wasm, generate HTML, then remove the JavaScript that was inlined into it.
- run_
mode - Executes the run mode (build + dev server + hot reload).
- sync_
canonicalize - Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved.
- sync_
read_ to_ string - Reads the entire contents of a file into a string.
- take
- Replaces
destwith the default value ofT, returning the previousdestvalue. - var
- Fetches the environment variable
keyfrom the current process.