Crates.io | transarch |
lib.rs | transarch |
version | 0.1.0 |
source | src |
created_at | 2024-01-20 02:50:19.264548 |
updated_at | 2024-01-20 02:50:19.264548 |
description | Compile code for a different arch into a blob |
homepage | |
repository | https://github.com/5GameMaker/transarch |
max_upload_size | |
id | 1106139 |
size | 3,995 |
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!