Skip to content

171h/vite-vue-wasm-starter

Repository files navigation

vite vue typescript rust

Vite + Vue + Typescript+ Webassembly

A starter project for you to create a blazingly fast web application

Before getting started

You need to get these prerequisites installed:

Installation

1. Clone the repository

git clone https://github.com/171h/vite-vue-wasm-starter
cd vite-vue-wasm-starter

2. Install dependencies

pnpm install # OR npm install

3. Run the application

You should open two tabs of terminal. The order of execution is important and do not close the first window ⚠️.

In the first tab, run:

pnpm rsw watch

In the second tab, run:

pnpm dev

Deploying

Run:

pnpm run build

Adding a crate

  1. Generate rust crate
pnpm rsw new hello-world

This will create a crate in a folder named hello-world

  1. Edit rsw.toml to register the crate
[[crates]]
name = "hello-world"

Reference

Improvement base on https://github.com/zuramai/vite-wasm-starter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published