GeistHaus
log in · sign up

Add a new wasm32-unknown-wasi target by alexcrichton · Pull Request #59464 · rust-lang/rust

github.com

This commit adds a new wasm32-based target distributed through rustup, supported in the standard library, and implemented in the compiler. The wasm32-unknown-wasi target is intended to be a WebAsse...

2 pages link to this URL
fastly/lucet in five minutes

<p>Lucet is Fastly's <a href="https://www.fastly.com/blog/announcing-lucet-fastly-native-webassembly-compiler-runtime">native WebAssembly compiler and runtime</a>. I am a big fan of Rust, Fastly and WASM. Especially WASM on the server via <a href="https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/">WASI</a>. I jumped right in and tried to get my own lucet program running, but the <a href="https://github.com/fastly/lucet/blob/8632b16faf2353727c9aa272d3ac65885eb9e1b9/README.md">setup</a> is a rather long process. My plan was to introduce lucet to some colleagues at my local Rust meetup. I am a huge fan of Rust, but the compile times are an issue. Spending 30 minutes on setup was a non-starter. I was excited when I saw that Fastly published a <a href="https://hub.docker.com/r/fastly/lucet">Docker container</a>:</p>

0 inbound links article en CC BY 4.0
WASI example using Rust and Lucet

<p>Lucet is Fastly's <a href="https://www.fastly.com/blog/announcing-lucet-fastly-native-webassembly-compiler-runtime">native WebAssembly compiler and runtime</a>. Using the Lucet runtime and Rust's <code>wasm32-unknown-wasi</code> target, we can create a WASM program that runs on the server.</p>

0 inbound links article en CC BY 4.0