/template-rust-vue

An example project using Rust & Vue.

Primary LanguageTypeScriptMIT LicenseMIT

Vite & Rust & Vue 3

A template for building a Vue 3 application including a Rust WebAssembly crate.

npm Scripts

A few npm scripts are included.

  • wasm Rebuild and package the Rust crate to Wasm using wasm-pack.
  • dev A hot reloading development server. Uses Vite for packaging and serving.
  • build Lint and type check then package for production. Output to target/dist/. Takes an optional argument for the base path.
  • check Lint and type check.
  • preview Serve the built package using Vite. For development / validation, not for production.

GitHub Workflows

The deploy-pages GitHub workflow automates building and deploying the app to GitHub Pages. If you want routing to work, add a symbolic link with 404.html -> index.html (See the docs).