Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.04 KB

DEVELOPMENT.md

File metadata and controls

57 lines (41 loc) · 1.04 KB

rtz development

Full Tests

$ cargo test --features full --features web

Publish to Cargo

Make sure rtz references the correct versions of rtz-core and rtz-build in Cargo.toml.

$ cargo publish -p rtz-core
$ cargo publish -p rtz-build
$ cargo publish -p rtz

Benchmarks

$ cargo bench --features web

Publish to NPM

$ cd rtz
$ wasm-pack build --target web --no-default-features --features tz-osm --features tz-ned --features self-contained --features wasm --features extrasimplified

Rename package to rtzweb in pkg/package.json.

$ wasm-pack publish

Publish to wasmer

$ # Regenerate the cache.
$ cargo build --release --no-default-features --features full
$ # Create the WASI binary.
$ cargo wasi build --release --features full
$ # Need `--no-validate` for some reason when pushing a WASIX binary.
$ wasmer publish

Publish to Docker

$ docker build -f ./docker/Dockerfile -t twitchax/rtz:{v} .
$ docker push twitchax/rtz:{v}