progrs package icon
bitwolf/progrs

wasi

Public
wasmer run bitwolf/progrs

Progrs

progrs (prog-R-S), is a wasm binary that gives you a progress bar for the current day, week, year.

example

Bugs:

  • indicatif doesn't render on wasm32
  • timezone is always utc on wasm32

Setup

You can build a traditional binary using cargo build or a wasm binary:

curl https://get.wasmer.io -sSfL | sh # Install wasmer runtime

# build for wasix (POSIX) target/wasm32-wasmer-wasi/
cargo install cargo-wasix
cargo wasix build # or cargo wasix build --release

# or build for wasi
rustup target add wasm32-wasi
cargo build --target=wasm32-wasi

This will build a wasm binary in target/wasm32-wasmer-wasi/debug/progrs.wasm. You can run this binary with wasmer run.

Thank you to

Notes

chrono start of mont/week
day in month trait
clap is_terminal wasm breaks
indicatif doesn't render on wasm32
day in year

Description for package progrs