A simplest possible example of how to compile Rust code to WASM. wasm-pack build --target web python3 -m http.server open localhost:8000