Website showing the current date in the French Republican calendar, along with the current decimal time.
While this project is written entirely in JavaScript, it uses my Rust library for date calculations. The wrapper now ships in two variants: the default build and a solar build.
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install the WebAssembly target
rustup target add wasm32-unknown-unknown
# Install wasm-pack
cargo install wasm-pack
# Build both wrapper variants
cd wrapper
./build.shYou just need to run a local web server in ./static. For example, using Python:
cd static
python3 -m http.serverThere are symlinks in the static folder that point to the compiled files in ./wrapper/pkg and ./wrapper/pkg-solar.
The default site uses calendrier_web_bg.wasm, and calendrier_web_solar_bg.wasm is exposed alongside it for comparison.
Your web server must support serving symlinks (just use python).