Exclosured.Compiler (exclosured v0.1.4)

Copy Markdown

Handles invocation of cargo, wasm-bindgen, and wasm-opt to compile Rust crates into WebAssembly artifacts.

Summary

Functions

Checks that required tools (cargo, wasm32 target, wasm-bindgen) are available.

Compiles a single WASM module. Returns :ok or {:error, reason}.

Functions

check_prerequisites()

Checks that required tools (cargo, wasm32 target, wasm-bindgen) are available.

compile_module(module_config, config)

Compiles a single WASM module. Returns :ok or {:error, reason}.