Stream: cargo-component

Topic: Rust toolchain vs cargo component


view this post on Zulip Victor Adossi (May 07 2025 at 16:08):

While discussing some downstream docs work, the topic of cargo component being phased out in favor of relying on native the much-advanced Rust toolchain seems to be the way people would like to move forward.

I'd love to confirm if this is the case/get some input from maintainers of cargo component and have a bit of discussion.

I'm of the opinion that we want a point of leverage between the user and the "lower level" tooling (wkg, wit-bindgen, etc) though of course that tooling is now very good/mature. Up until now cargo component has been the entrypoint into WASM for Rustaceans and of course changing that sort of invalidates a lot of discourse and removes a point of leverage.

The problem of there being not enough people to maintain cargo component is certain a problem but IMO we should fix that rather than push people to a no-amalgamated-tool scenario.

Before the wasm32-wasip2 target was added to Rust, cargo-component did a lot of the heavy lifting to enable rust developers to create p2 components. Now, it is more advantageous to directly use Rus...

Last updated: Dec 06 2025 at 06:05 UTC