1 unstable release
0.1.0 | Jan 20, 2024 |
---|
#786 in WebAssembly
4KB
Transarch
Cargo interstateCross-compile Rust code into a blob
let wasm_blob = wasm! { // Happy wasm blob
pub extern "C" fn add(a: i32, b: i32) {
a + b
}
};
This crate uses all the bad practices to compile Rust code into a blob. Be sure to cargo clean
once in a while!
lib.rs
:
Inside of you there are two wolves
wasm!
, cross!