Hi,
For now wasip3 crate doesn't support this arg with cargo.
Where can I track (repo / issue / PR) the work on this? (if work already started)
-Zbuild-std should work for any target provided that you have the required linker and system libraries available. What is the error you get?
https://github.com/rust-random/getrandom/actions/runs/20799036693/job/59739722173#step:6:99
That is missing wasi-libc. For wasip2 the rustup component should ship with wasi-libc, but because we don't ship a wasip3 target, you need to manually point rustc to the clang in wasi-sdk with RUSTFLAGS="-Clinker=/path/to/wasi/clang": https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-29
There is an accepted PR which start to add target https://github.com/WebAssembly/wasi-libc/pull/700.
So will wait until wasi-sdk bump with that work.
For the time being you can use clang with the wasm32-wasip2 target, for example /path/to/wasm32-wasip2-clang as the -Clinker. Otherwise though the wasip3 target isn't ready in Rust for prime time yet
I'll note that I do not plan on adding a wasip3 target to wasi-sdk just yet, leaving it test-only/build-from-source only in wasi-libc
We need to sort out ABI things before providing a precompiled binary
I can wait, I don't need it for now.
If that's ok, that's what I'd recommend yeah. I think it's reasonable to add #[cfg]'d code for wasip3, to clarify, but testing it is going to be manual for now
Last updated: Jan 29 2026 at 13:25 UTC