Closed JohnGouwar closed 2 years ago
There isn't explicit support for wasm (if someone wants to add it, I'd accept a PR) but issue https://github.com/softdevteam/grmtools/issues/124 may give you a hack to get around the problem?
Ah, that's fair. I see that others have an issue from compiling on a 64 bit architecture, I'll try building with 32bit container. Thank you!
OS: Ubuntu 20.04 64 bit
Steps to reproduce bug: 0) Follow Quickstart guide from grmtools book. 1) Edit the Cargo.toml in the following way
2) Edit parse function in the following way in
src/lib.rs
3) Compile using `wasm-pack build --target nodejs 4) Link the package to a node project 5) Run the following script using node
My initial conjecture is that there is a cast between u64 and usize somewhere, which does not work with the Wasm architecture.