Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 717 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 717 Bytes

collatz-wasm

Collatz algorithm written in rust, compiled to WASM and used in a webproject. Chartjs used for graphics. See DEMO

Bildschirmfoto vom 2021-08-14 08-00-12

prerequisites

  1. you need to have Rust installed (install instructions)
  2. to compile the rust code to WASM and link with your frontends javascript code, you need wasm-pack (install instructions)

build

# build rust binaries
cargo build

# compile to wasm
wasm-pack build --target web