I've sent https://github.com/rust-lang/rust/pull/165932 for rust-lang/rust, but https://github.com/rust-lang/libc/pull/5733 is needed as well. In the meantime though locally I've got "hello world" compiling to a component which imports all the right interfaces
Nice!
What's the process for updating things as we make revisions to wasi-libc?
do you mean like fill out preexisting APIs with a new implementation or add new APIs which want to be used in rust-lang/rust?
or like bugfixes?
Mostly I'm thinking bugfixes or changes to bindings
and I suppose that's it
aka "make a new wasi-sdk"
being a -Zbuild-std target it means that rust-lang/rust doesn't need any updates, users just need to make sure they're using an up-to-date toolchain to pull in the right libc
is wasi-sdk somehow downloaded by rustup or something?
No it's a manual download everyone has to do
the wasm32-wasip2 target, for example though, will bundle libc.a detected at build-time (e.g. in rust-lang/rust's CI), and that grace is not given to wasm32-webp2 as it's a tier 3 target at this time
(no binaries provided)
hm so Rust users are going to have to install wasi-sdk just like C/C++ users?
or do they just need the sysroot or something?
technically just the sysroot, but it's easier to just download wasi-sdk
the requirement will go away once the target is tier 2 in rust
what parts of wasi-sdk is Rust actually using then? is it just libraries or also the tools (e.g. wasm-component-ld)? Because the sysroot doesn't include the tools, right?
just libc.a basically, the rust wasm32-wasip3 target vendors the libc.a from the wasi-sdk sysroot
rust builds its own version of wasm-component-ld which is manually kept in sync and/or up-to-date
Last updated: Nov 19 2026 at 20:05 UTC