Skip to content

evestera/json-typegen-elm-wasm

Repository files navigation

json_typegen Elm/wasm frontend

Frontend for json_typegen that uses only static files, i.e. does not need a separate backend.

Building and running

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

License

This is free and unencumbered software released into the public domain.

About

Frontend for json_typegen using Elm and WebAssembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published