Building basic wasm.

This commit is contained in:
Tom Alexander
2023-12-24 00:39:57 -05:00
parent 59222c58b1
commit a48d76321e
3 changed files with 22 additions and 0 deletions

6
src/bin_wasm.rs Normal file
View File

@@ -0,0 +1,6 @@
#![no_main]
#[no_mangle]
pub extern "C" fn add(left: usize, right: usize) -> usize {
left + right
}