The material is borrowed from Hello, Rust!
Files creation
Save this file as main.wasm in build folder.
Or generate this file by
rustc +nightly --target wasm32-unknown-unknown -O --crate-type=cdylib src\main.rs -o build\main.big.wasm
The helper functions are defined in bundle.js.
Result
WebAssembly text format with fn fact(n: u32) -> u64 only