This recent Tokio issue shows that folks are eager to use both the wasm32-wasip3 target and cooperative multithreading despite neither being stable yet. What's the "right" way to detect the latter in a cfg guard?
No current #[cfg] at this time
But compiling with threads requires setting a bunch of flags, one of which could be a custom --cfg
What guidance would you have on that issue, then? Wait for threading to stabilize before trying to use it?
or maybe use something like RUSTFLAGS="--cfg tokio_unstable_wasip3_threading"?
Last updated: Nov 19 2026 at 20:05 UTC