🦀 Rust, WebAssembly, and Snowpack
✨Bootstrapped with Create Snowpack App (CSA).
Ensure Rust is installed on your machine. For more information, check out the Rust docs.
# Pull template into a working directory npx create-snowpack-app my-awesome-app --template snowpack-template-ts-rust-wasm --use-yarn # Install required Rust crates cd my-awesome-app cargo install cargo-watch wasm-pack # Manually build and test WebAssembly module yarn build:wasm && yarn test:wasm
- Typescript Support
- Building and testing Rust/WebAssembly modules
- Uses snowpack-plugin-wasm-pack for HMR
- Prettier for code linting and formatting
Additional Resources (Rust/WebAssembly):
Changes into Rust crate and builds WebAssembly into
Executes Rust tests bound to the WebAssembly module. Configured to run in a node environment.
Note: Modify the directories in the scripts above after creating your own crate.
Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Builds a static copy of your site to the
Your app is ready to be deployed!
Q: What about Eject?
No eject needed! Snowpack guarantees zero lock-in, and CSA strives for the same.