Skip to content

A template combining Three.js, Mocha, Rust-WASM and Typescript.

License

Notifications You must be signed in to change notification settings

Vaults/threets-rust-wasm-template

Repository files navigation

threets-rust-wasm-template

This is a template project for combining Three.js, Rust-WASM and TypeScript. This project is a combination of multiple techniques out in the field for Typescript-WASM integration.

Setting up

You will need Node >10 and it may be necessary to install some cli-packages here and there. Also Rust >1.3 is needed. Clone the project and run npm install.

Development server

Run npm start for a dev server. Navigate to http://localhost:8080/. The app will automatically reload if you change any of the source files.

Build

Run npm build to build the project. The build artifacts will be stored in the dist/ directory. Both the Rust package and TypeScript package will be built.

Running unit tests

Run ng test to execute the unit tests via Mocha and cargo.

Running integration tests

Run npm run integration-test to execute integration tests.

Contributing

Please add issues/pull requests if things aren't working or if they're unclear. That's the best way to contribute. Depending on the nature I could add documentation or fixes.

Further help/

Unfortunately, it's not a very common workflow yet. I wish you the best.

About

A template combining Three.js, Mocha, Rust-WASM and Typescript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published