A single page web app, written exclusively in rust and compiled to WebAssembly.
BigPrimes uses the Seed framework. Seed is inspired by Elm and so uses the model-view-update (MVU) architecture.
Contributions are very welcome in the form of PRs. If it's a big contribution I recommend contacting me first and we can make sure it's aligned to the project direction.
- Write code
- Run tests
cargo testand check nothing is broken - Add/run benchmarks
cargo benchand check nothing is terribly slow cargo fmt --allto format code contributions.- Create PR
- Clone bigprimes.net
git clone https://github.com/craigmayhew/bigprimes.net.git - Install cargo rustc, rustup
curl https://sh.rustup.rs -sSf | sh - Add ability to compile to webassembly
rustup target add wasm32-unknown-unknown - Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh cargo +stable install --locked trunkcargo install wasm-bindgen-cli- Build
trunk build - Build, serve and rebuild on changes
trunk serve --open
- Build:
wasm-pack buildortrunk build - Build and serve locally:
trunk serve --open
