I would like to compile a Rust program/project to Wasm for use within my Python application using python-ext-wasm. The existing tutorials assume that it's for the web and suggest wasm-pack. Is there another way of just compiling Rust to Wasm without JavaScript bindings?
For example, if I have a Rust program (myproject/math.rs).
#[no_mangle]
pub extern fn sum(x: i32, y: i32) -> i32 {
x + y
}
How do I convert that into a
wasmfile withoutwebpack?How do I take an entire project (with it's library dependencies) and compile all of them to Wasm?