WASM binary of flatc for cross-system schema compilation
Hey,
I was wondering if it'd be possible to build a wasm binary of flatc and include it with the releases.
This way anyone who's cloning a repo using flatbuffers can immediately start writing schemas and won't have to worry about preparing their system before, if that repo has a build script using the wasm binary (i.e. in a package.json or similar).
Cheers
I had this working a few years ago, I am trying to update it to use an Emscripten API instead of the WASI filesystem hacks currently being used.
Good news; my updated WASM branch is working.
I'm going to publish an NPM package within the next week, which will also have my --preserve-case functionality in it, for my own use.
Here it is: flatc-wasm
Super cool, thanks for publishing this! 🙏 Would be cool if wasm would be picked up as a target in the official release cycle and then maybe the npm lib could always point to the latest binary (?). Anyways, thanks for your involvement, very much appreciated!