#build-tool #gxi-rs

app gxib

build tool for the gxi-rs project

15 releases

Uses new Rust 2021

0.3.7 Apr 8, 2022
0.3.6 Jan 10, 2022
0.3.3 Dec 16, 2021
0.2.3 Oct 21, 2021
0.2.1 Jul 26, 2021

#48 in Build Utils

Download history 4/week @ 2022-03-04 44/week @ 2022-03-11 56/week @ 2022-03-18 1/week @ 2022-04-01 36/week @ 2022-04-08 3/week @ 2022-04-15 17/week @ 2022-04-22 76/week @ 2022-04-29 69/week @ 2022-05-06 256/week @ 2022-05-13 48/week @ 2022-05-20 102/week @ 2022-05-27 105/week @ 2022-06-03 2/week @ 2022-06-17

209 downloads per month

MIT license

27KB
635 lines

Docker

Gxib

build tool for the gxi-rs project

Web

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

Docker

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

Run

cd /app
gxib web

Dependencies

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
    
  • Wasm Bindgen CLi

    cargo install wasm-bindgen-cli
    
  • Binaryen for reducing wasm bundle size with wasm-opt -Oz

Roadmap

  • Basic desktop gtk builds
  • Basic wasm builds
  • Desktop hot reload
  • Web and Desktop hot refresh without losing state

Dependencies

~19–27MB
~590K SLoC