Use wasm32-wasip1
target
#6484
Labels
A-tokio
Area: The main tokio crate
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-wasm
Topic: Web Assembly
Tokio currently only supports preview 1 of wasi (see #6323 on preview 2 support), and Rust is renaming the wasi target to
wasm32-wasip1
in the 1.78 release of Rust.Once Rust releases 1.78 in May 2024, we should update our wasi support to use the new target name. This fix does not need to be backported to LTS releases, since wasi support is an unstable feature.
Tokio's wasi support is unstable, so it does not need to respect Tokio's msrv. This means that it is okay that this change breaks unstable wasi support on older rustc versions. However, ordinary wasm is stable, so that should not break on older Rust versions. Please see our documentation for details on wasm support in Tokio.
The text was updated successfully, but these errors were encountered: