| Crates.io | gxib |
| lib.rs | gxib |
| version | 0.3.9 |
| created_at | 2021-04-30 17:21:18.02935+00 |
| updated_at | 2022-09-26 08:58:29.440244+00 |
| description | build tool for the gxi-rs project |
| homepage | |
| repository | https://github.com/gxi-rs/gxib.git |
| max_upload_size | |
| id | 391631 |
| size | 70,675 |
build tool for the gxi-rs project
gxib web helps compile the project to ready to use .wasm files.
Inbuilt web server with hot reload for faster development.
gxib web -wrs 0.0.0.0:8080
contains all dependencies required for web builds
mounts current dir to /app and exports port 8080
$ docker pull ghcr.io/gxi-rs/gxib:latest
$ docker run \
-p 8080:8080 \
-v $(pwd):/app \
-it ghcr.io/gxi-rs/gxib:latest
cd /app
gxib web
if you don't want to use the prebuilt docker image, the following dependencies need to be present in your dev environment.
install gxib
cargo install gxib --locked
install wasm32-unknown-unknown architecture
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
Binaryen
for reducing wasm bundle size with wasm-opt -Oz