Skip to content
Circular Calendar (rust wasm)
Rust CSS Makefile HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Circular Calendar

This will be a WASM webpage generator that dynamically constructs and SVG showing a Southern Hemisphere based circular seasonal calendar.

Install Build Tools


This is the tool that the Rust WebAssembly Working Group wants you to use for your workflow. It used to be mostly about deploying to npm but it deploys everywhere now.

  1. Run wasm-pack build --target web to build


A tool in the binaryen system package, this shrinks .wasm files

$ wasm-opt -Os -o output.wasm input.wasm


Numerous javascript minimization programs have been released in the past including yui-compressor, jsmin, minify, uglifyjs (1,2,and3), uglify-es, and terser. Terser is a fork of uglify-es that handles the newest ECMA versions of javascript, is maintained, and gives the best compression ratio (I ran tests). It runs on node; install globally with

$ npm install terser -g


Run make and then make deploy.

Output will be in deploy/ folder, ready to serve from a webserver or via a file:/// URL.

Technology and Notes

WASM related libraries used:

  • wasm-bindgen
  • web-sys

See also:

You can’t perform that action at this time.