Skip to content

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

Notifications You must be signed in to change notification settings

dcts/collatz-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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