Readme

Example of how to use a rust val. See This Gist for how to build rust vals. And https://www.val.town/v/saolsen/example_rust_val for the output val we are using.

1
2
3
4
import { add, say_hello } from "https://esm.town/v/saolsen/example_rust_val";
console.log(add(1, 2));
say_hello();
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.