I am working on a WebAssembly crate that provides bindings to the three.js graphics library. I'm still very new to Rust and have definitely jumped in the deep end on this one, but nonetheless I have made enough process on this project that I have a minimal working example that I would like to get some feedback on.
At the moment, I haven't published anything on crates.io, so you will need to clone the following repositories from Github. The links and remainder of this post are in the replies since I can not post more than two links as a new user.
The testbench refers to the threejs-sys by specifying the depenency path attribute as ../threejs-sys so if both repositories have been cloned into the same folder, you should be able to build and run the testbench with:
wasm-pack build --target web
python -m http.server
and then open localhost on port 8000 in your web browser.