Calcit(
0.7.0-a3
) package on WASI, bundled Calcit-rs without watcher and injections.
wapm install calcit/wasi-calcit
wcr --dir=. # trys to run `compact.cirru`
wcr -e 'range 100' # eval mode
cargo build --target wasm32-wasi
wasmer run --mapdir examples/:examples/ target/wasm32-wasi/debug/wasi-calcit.wasm -- examples/compact.cirru
or:
cargo build --target wasm32-wasi --release
cp target/wasm32-wasi/release/wasi-calcit.wasm builds
wapm run wcr -e 'range 100'
wapm run wcr --dir=examples examples/compact.cirru
wapm run wcr --dir=./ examples/compact.cirru --emit-js
Check out https://github.com/calcit-lang/calcit-wasm-play for browser version.