Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 989 Bytes

DEVELOPMENT.md

File metadata and controls

51 lines (37 loc) · 989 Bytes

rtz development

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}