Tutorial: Vite Rust WebAssembly Dev Environment

preview_player
Показать описание
This short tutorial demonstrates how to set up a dev environment in which you can compile Rust code to WebAssembly, and is bundled together with Vite and your choice of frontend framework. In this particular video, we use Svelte.

Рекомендации по теме
Комментарии
Автор

Oh my god. Thank you so much.

I was struggling with this error saying "wasm.__wbindgen_start is not a function" for the longest time, until I found this video and installed those two vite plugins for my vite.config.js. Good shit.

acai
Автор

Nice to have a demo on Vite for the uninitiated 👍

ssachie
Автор

vite build doesn't seem to work though, its converting the wasm to base64 and trying to import it?

Drew-Chase
visit shbcf.ru