Creating a Webassembly App in Rust
Created and recorded by Jaysinh Parmar in May 2021
Outline
1. Why WebAssembly with Rust over JavaScript?
2. Install dependencies needed
3. Fetch standard template
4. Demonstrate how to build webassembly application
5. Modify code to import alert from javascript and export the modified alert from rust to wasm
6. Run the webserver
Introduction
Explain the motivation behind selecting rust for webassembly over javascript:
- Reliable performance
- Small code size
- More detail ()
Dependencies
1. Get rust toolchain (rustup, rustc, and cargo)
2. wasm-pack, which is your one-stop-shop for building, testing, and publishing Rust-generated WebAssembly. Get it from here:
3. Get cargo-generate to help us quickly build new Rust project by leveraging pre-existing templates (cargo install cargo-generate)
4. Get npm
Create WebAssembly App
1. Clone pre-configured default templa
1 view
4377
1527
1 day ago 00:26:55 2
THE GASLIGHT DISTRICT: PILOT
1 day ago 00:08:30 1
Wizard n’ Champion Episode 1
1 day ago 00:28:38 2
I built a SWING RIDE in Minecraft Create mod!
1 day ago 00:31:12 2
The new Create update just changed EVERYTHING!
1 day ago 00:31:53 2
Animatronic DRAGON in Minecraft Create Mod!
1 day ago 00:30:04 1
This block changed everything! Minecraft Create Mod
1 day ago 00:23:48 1
I’m back! And I built a WIZARD TOWER!
1 day ago 00:31:11 1
Automated STORAGE SYSTEM in Minecraft Create Mod!
1 day ago 00:32:37 1
Starting my DELIVERY NETWORK in Minecraft Create Mod!
1 day ago 00:30:13 1
I built a Giant Storage Warehouse in Minecraft Create Mod!
1 day ago 00:31:07 1
Easy DIAMOND FARM with Create: Additional Recipes!
1 day ago 00:23:32 1
I got INFINITE free metals in my Minecraft Create Mod world!
1 day ago 00:23:38 1
I built a Quartz Factory in my Create Mod world!
1 day ago 00:29:15 1
I built a HUGE POWER STATION in Minecraft Create Mod!
1 day ago 00:27:02 1
I built a SUSPENSION BRIDGE in Minecraft Create Mod!
1 day ago 00:28:39 1
I built a STEAM TRAIN in Minecraft Create Mod!
1 day ago 00:32:41 1
The TRAINS are coming! So I built a train station...
1 day ago 00:24:47 1
My perfect world is all coming together in Minecraft Create Mod!
1 day ago 00:29:27 1
I built a FANTASY MUSHROOM CAVE in Minecraft Create Mod
1 day ago 00:31:14 1
I spent 12 HOURS decorating my log flume in Minecraft Create Mod!
4 days ago 00:06:33 1
🎶 Гроза Степи 🔥 Монгольский Этнос в Современной Обработке с Элементами Фолк Рока
6 days ago 00:38:26 1
Путь к успеху и падению: хроники нашего выживания - DayZ.
1 week ago 00:09:10 1
Slendytubbies II | BEST SCREAM EVER?! | w/ SweetieSwitch, Jerejoe, LeverageGames & EvilxRiot
1 week ago 00:00:00 4
2 minutes ago! Ukraine and North Korea engaged in close combat, see what happened!