Stream: componentize-the-world-2023

Topic: Rust


view this post on Zulip Peter Huene (Sep 08 2023 at 16:56):

Hi Rust folks! Creating a topic here for anyone to ask questions, ping Alex or I for help/questions, or otherwise want to chat!

view this post on Zulip Peter Huene (Sep 08 2023 at 16:57):

Once anyone gets to the point that they want to kick the tires on publishing and consuming components from a registry, I'm happy to walk people through it and grant keys to packages on the preview registry instance.

view this post on Zulip Peter Huene (Sep 08 2023 at 17:12):

Link to the exercises: https://alexcrichton.github.io/bacon-exercises/

view this post on Zulip Peter Huene (Sep 08 2023 at 17:12):

Link to cargo-component: https://github.com/bytecodealliance/cargo-component

A Cargo subcommand for creating WebAssembly components based on the component model proposal. - GitHub - bytecodealliance/cargo-component: A Cargo subcommand for creating WebAssembly components bas...

view this post on Zulip Peter Huene (Sep 08 2023 at 17:12):

Link to Wasmtime: https://github.com/bytecodealliance/wasmtime

A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Peter Huene (Sep 08 2023 at 17:12):

Link to wasm-tools: https://github.com/bytecodealliance/wasm-tools/

Low level tooling for WebAssembly in Rust. Contribute to bytecodealliance/wasm-tools development by creating an account on GitHub.

view this post on Zulip Peter Huene (Sep 08 2023 at 17:13):

Link to wit-bindgen https://github.com/bytecodealliance/wit-bindgen

A language binding generator for WebAssembly interface types - GitHub - bytecodealliance/wit-bindgen: A language binding generator for WebAssembly interface types

view this post on Zulip Peter Huene (Sep 08 2023 at 17:29):

For those of you installing Wasmtime, please install with the --feature component-model flag so that component model support is enabled.

view this post on Zulip Peter Huene (Sep 08 2023 at 18:13):

FYI: rust-analyzer seems to not be working properly right now for you VS Code users; changes to your WIT files that affect your bindings aren't being reflected in the parse tree. a workaround is to use the rust-analyzer: Restart Server command after changing your WIT, which will force a reparse. I'm looking into the issue.

view this post on Zulip Peter Huene (Sep 08 2023 at 18:50):

Also: @Timmy Silesmo put together a really cool tool called https://wa2.dev, which you can browse to any component you've built to inspect what's inside of it.

view this post on Zulip Peter Huene (Sep 08 2023 at 18:50):

For composition, you may also play around with a simple GUI we threw together called https://wasmbuilder.app

view this post on Zulip Alex Crichton (Sep 08 2023 at 20:52):

I should also mention that sample Rust answers can be found at https://github.com/alexcrichton/bacon-exercises/tree/main/answers/rust if anyone would like to poke around there

view this post on Zulip Peter Huene (Sep 08 2023 at 21:26):

I feel like it might not be the best to interrupt the whole room to present (given there's a lot going on and separate), so if any is interested in seeing a demo of registry integration in cargo-component, come find me at the front and happy to run through things

view this post on Zulip Peter Huene (Sep 08 2023 at 23:51):

A huge thank you to everyone that participated in kicking the tires of the component model, cargo component, the composition tooling (which will soon be updated to a registry-aware tool with a well defined composition language), and everything else!

Your feedback has been invaluable and we hope today was educational, social, and fun (when the tools worked...).

Another big thanks to Alex for producing the tutorial/CTF content too!

view this post on Zulip Peter Huene (Sep 08 2023 at 23:52):

We'll hopefully see y'all at the happy hour


Last updated: Dec 23 2024 at 12:05 UTC