Reference repository to an issue / question.
This project tries to demonstrate how to create wasm-bindgen bindings to external Javascript libraries from Rust code. The Rust code gets compiled to WebAssembly / Javascript library that can be then used in other web projects as a dependency.
- cd in to the root of the project
- run
wasm-pack build
- cd in to the
www/
folder - run
npm install
and thennpm start
You should now be able to open browser to localhost:8080
and see pixi.js get initialized properly through
WebAssembly/Rust in the console. The Javascript executed in the browser window is in the file: www/index.js
.