Hi Rust folks! Creating a topic here for anyone to ask questions, ping Alex or I for help/questions, or otherwise want to chat!
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.
Link to the exercises: https://alexcrichton.github.io/bacon-exercises/
Link to cargo-component: https://github.com/bytecodealliance/cargo-component
Link to Wasmtime: https://github.com/bytecodealliance/wasmtime
Link to wasm-tools: https://github.com/bytecodealliance/wasm-tools/
Link to wit-bindgen https://github.com/bytecodealliance/wit-bindgen
For those of you installing Wasmtime, please install with the --feature component-model
flag so that component model support is enabled.
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.
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.
For composition, you may also play around with a simple GUI we threw together called https://wasmbuilder.app
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
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
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!
We'll hopefully see y'all at the happy hour
Last updated: Dec 23 2024 at 12:05 UTC