# Make a [Val](https://www.val.town/) 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. ## Usage * 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. ## Val made from this gist * https://www.val.town/v/saolsen/example_rust_val ## Val that uses it * https://www.val.town/v/saolsen/use_example_rust_val ## Another example that is an http val. * https://gist.github.com/saolsen/294683088bae9a8f9a8cf93e2b392729