#cross-compiling #cross #blob #different

transarch

Compile code for a different arch into a blob

1 unstable release

0.1.0 Jan 20, 2024

#735 in WebAssembly

MIT license

4KB

Transarch

Cargo interstate

Cross-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!

Dependencies