Function build_native_wasm
pub fn build_native_wasm(
rust_source: &str,
crate_name: &str,
work_dir: &Path,
) -> Result<PathBuf, String>Expand description
Build a function’s AOT module to a browser-loadable wasm32-unknown-unknown cdylib
(HOTSWAP §Axis-3 / P17 — the browser analog of build_native_cdylib). The module
is the same scalar-ABI shim; the wasm crate keeps logicaffeine-data +
logicaffeine-system (both wasm-ready) but drops the desktop-only tokio, the
logicaffeine-system full feature, and target-cpu=native. Returns the .wasm path;
the browser then WebAssembly.instantiates it and the entry calls into it through
the warm-bytecode indirection. Requires the wasm32-unknown-unknown target.