Skip to content
Unverified: This page has not yet been anchored to automated code tests.

vox-tauri-codegen API Reference (generated)

Crate: vox-tauri-codegen · Version: 0.6.0 · Target: Library (lib.rs)

Emit minimal Tauri 2 shell files beside generated Vox Rust + Vite apps.

Tauri 2 packaging hints for vox compile.

Emits a tauri.conf.json fragment compatible with Tauri CLI v2 ($schema URL). Full src-tauri Rust crate wiring is completed by cargo tauri init / upstream templates on first clone; this crate keeps the identifier, window, and frontendDist SSOT-aligned with [bundle] in Vox.toml.

When a workspace root containing [RUNTIME_CAPABILITIES_REL] is supplied, also emits runtime-capabilities.projection.json — a merge-friendly projection of the capability → Tauri / Android / iOS packaging map (see docs/src/adr/036-webir-hir-unification-compare-both.md).

DependencyKind
vox-compilerNormal
StructDescription
TauriEmitParams—
FunctionDescription
tauri_desktop_config_valueBuild the desktop tauri.conf.json document (Tauri CLI v2).
serialize_tauri_desktop_configPretty-printed tauri.conf.json body for embedding into generated src-tauri/.
write_tauri_desktop_configWrite a V2 tauri.conf.json (overwrites). Used by vox compile to refresh bundle ids after codegen.
seed_placeholder_icon—
find_contracts_repo_rootWalk parents of start until contracts/capability/runtime-capabilities.v1.yaml exists.
emit_tauri_packaging_hintsWrites tauri/tauri.conf.json plus tauri/README.md under out_root. When contracts_repo_root is Some and contains [RUNTIME_CAPABILITIES_REL], also writes runtime-capabilities.projection.json beside those files. Pass required to include only capability rows whose ids appear in [vox_compiler::required_capabilities::RequiredRuntimeCapabilities::capability_ids] (plus a derived tauri_permission_allow_list); pass None to mirror the full YAML contract. Consumers run cargo tauri build from a src-tauri crate that includes or merges this config (see README).
ConstantDescription
RUNTIME_CAPABILITIES_RELRelative path from repository root to the runtime capability packaging SSOT.