include-wasm-rs 0.2.0

Builds a Rust WebAssembly module at compile time and returns the bytes.
Documentation
1
2
3
4
5
6
7
use include_wasm_rs::build_wasm;

fn main() {
    let module = build_wasm!("./wasm_module");

    println!("wasm bytes: {module:?}");
}