API Reference exclosured v#0.1.4
Copy MarkdownModules
Exclosured compiles Rust code to WebAssembly and runs it in browser sandboxes with Phoenix LiveView bidirectional communication.
Handles invocation of cargo, wasm-bindgen, and wasm-opt to compile Rust crates into WebAssembly artifacts.
Parses and validates Exclosured configuration.
Generate Elixir structs from annotated Rust structs.
Parses Rust source files for /// exclosured:event annotated structs.
Define small WASM functions inline in Elixir using defwasm.
LiveView integration for Exclosured WASM modules.
Manages the build manifest for incremental compilation.
Binary encoding protocol for high-frequency state synchronization.
Telemetry events emitted by Exclosured.
File watcher for development. Triggers WASM recompilation when Rust source files change.
Mix Tasks
Mix compiler that builds Rust crates into WebAssembly.
Scaffolds the Exclosured project structure.