Stream: SIG Documentation

Topic: upstreaming `wasi:http` samples to the BA


view this post on Zulip Yosh Wuyts (Dec 02 2024 at 14:22):

Hey all, I've started the process of upstreaming my wasi:http Rust sample to the BA, and wanted to: 1) make sure you're aware, and 2) get your perspective on this.

I feel like we're doing a pretty good job getting developers interested in Components, but we're having some trouble converting that interest into hands-on experience. That's why I would like us to start providing actual production-grade samples - guiding developers from setting up their toolchains, to writing code, and even deploying to registries.

I've started this work in Rust because that's what I'm most comfortable with. But my hope is that we can begin to expand this to more languages over time. And not just to help developers get started - but also for ourselves to evaluate the state of the platform tooling and ecosystem.

Proposing the adoption of rust-wasi-sample as a Bytecode Alliance hosted project. Repository URL: https://github.com/yoshuawuyts/wasi-rust-sample This is represents a simple "hello world" HTTP comp...
"hello world" using Rust and Wasm Components. Contribute to yoshuawuyts/sample-wasi-http-rust development by creating an account on GitHub.

view this post on Zulip Kate Goldenring (Dec 02 2024 at 20:37):

@Yosh Wuyts thank you for sharing this. This would be great to reference from the component docs and removes some of the burden of the book maintaining the examples. We also do not have much documentation on WASI HTTP, so this provides an opportunity to add that. I created an issue to track this here https://github.com/bytecodealliance/component-docs/issues/182

The book is lacking in an example and more documentation on using WASI HTTP to create Wasm services and running them with cargo serve and wasmtime serve etc. Instead of writing and maintaining an e...

view this post on Zulip Yosh Wuyts (Dec 03 2024 at 14:06):

yay, that's great to hear! - that sounds like it would make for a good match then ^^


Last updated: Dec 23 2024 at 13:07 UTC