Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/greenpdx/template-vue-ts-wasm

A template for Rust WASM development in Vue
https://github.com/greenpdx/template-vue-ts-wasm

rust vue3-typescript wasm wasm-bindgen

Last synced: 25 days ago
JSON representation

A template for Rust WASM development in Vue

Awesome Lists containing this project

README

        

# wasm-pack + Rust + wasm-bindgen + Vue (plus Typescript and Vite)

This template should help get you started developing WASM modules written in Rust with Vue 3 and TypeScript in Vite.

The template uses

* Vue 3 `` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.<br>
* wasm-pack is used to compile Rust to WASM [wasm-pack](https://rustwasm.github.io/wasm-pack/book/) for more information<br>
* Rust is a great language for codeing WASM because of it's safety and static memory control [Learn Rust](https://www.rust-lang.org/learn) <br>
* wasm-bindgen is the control of compiling Rust to WASM [wasm-bindgen Guide](https://rustwasm.github.io/docs/wasm-bindgen/) and [wasm-bindgen Documentation](https://docs.rs/wasm-bindgen/latest/wasm_bindgen/)<br>
* web_sys is the glue between WASM and TypeScript/JavaScript [web_sys Guide](https://rustwasm.github.io/wasm-bindgen/web-sys/index.html) and [web_sys Documentation](https://docs.rs/web-sys/latest/web_sys/)<br>
* vite is the build system [Vite Dev](https://vite.dev/)

Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).<br>