Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 591 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 591 Bytes

Build WebAssembly from Rust and run it on Deno

This is a project companion to the blog post How to write WebAssembly in Rust and use it in Deno

Install

Install the tool to compile Rust into WebAssembly with:

curl https://raw.githubusercontent.com/second-state/ssvmup/master/installer/init.sh -sSf | sh

Build

Build the Rust library into WASM with:

ssvmup build --target deno

Run in Deno

To run in Deno, use:

deno run --allow-read mod.ts

Made by StartFunction