Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics. See DEMO
- you need to have Rust installed (install instructions)
- to compile the rust code to WASM and link with your frontends javascript code, you need
wasm-pack
(install instructions)
# build rust binaries
cargo build
# compile to wasm
wasm-pack build --target web