Frontend for json_typegen that uses only static files, i.e. does not need a separate backend.
To build this you will need emscripten and a Rust toolchain with the wasm-target installed (rustup target add wasm32-unknown-emscripten
).
The guide I followed for the basic setup: Get Started with Rust, WebAssembly, and Webpack
Once these dependencies are installed, you can compile and serve with:
npm run compile
npm run serve
Note: Since the wasm file is fetched, and fetch(...)
does not work with file://
paths, you need to serve the files to make it work.
To pre-build Rust/wasm component (for easier debugging of that part):
cargo build --target=wasm32-unknown-emscripten --release
This is free and unencumbered software released into the public domain.