Make a Val with rust.
Build a https://www.val.town/ val with rust. This is an example of how to compile a rust file to wasm and use it as a val.
Requires rust, wasm-pack and deno.
- Put your code in
val.rs
. - Build it.
wasm-pack build --target nodejs
deno run --allow-read --allow-write package.ts
- Copy the code in
val.ts
to your val.