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
$ cargo bench --features web
$ 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
$ # 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
$ docker build -f ./docker/Dockerfile -t twitchax/rtz:{v} .
$ docker push twitchax/rtz:{v}