From 12763f6351d0c25b6f90dd7adbe0da3896d8e9c9 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Wed, 14 May 2025 17:00:23 +0100 Subject: rust: Fix building of unit-wasm and rust examples When building the rust stuff we were getting the following compiler error error: failed to run `rustc` to learn about target-specific information ... --- stderr error: Error loading target specification: Could not find specification for target "wasm32-wasi". Run `rustc --print target-list` for a list of built-in targets This is due to wasm32-wasi being renamed to wasm32-wasip1, with wasm32-wasi being kept clear for an eventual WASI 1.0 release. Signed-off-by: Andrew Clayton --- src/rust/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rust/README.md') diff --git a/src/rust/README.md b/src/rust/README.md index a48e2cd..2cf8721 100644 --- a/src/rust/README.md +++ b/src/rust/README.md @@ -9,7 +9,7 @@ cargo add unit-wasm ## Prerequisites -- target add wasm32-wasi. `rustup target add wasm32-wasi` +- target add wasm32-wasip1. `rustup target add wasm32-wasip1` ## From Source -- cgit