summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2025-05-14 17:00:23 +0100
committerAndrew Clayton <a.clayton@nginx.com>2025-05-14 18:09:44 +0100
commit12763f6351d0c25b6f90dd7adbe0da3896d8e9c9 (patch)
treefb185f27976f7bcc4e12de42fab72731efaa874b /src
parent4d4f1f2284d54dfabf58246034b8fc7fd0282f83 (diff)
downloadunit-wasm-12763f6351d0c25b6f90dd7adbe0da3896d8e9c9.tar.gz
unit-wasm-12763f6351d0c25b6f90dd7adbe0da3896d8e9c9.tar.bz2
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 <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/rust/Makefile4
-rw-r--r--src/rust/README.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rust/Makefile b/src/rust/Makefile
index d2e705a..13ecdf5 100644
--- a/src/rust/Makefile
+++ b/src/rust/Makefile
@@ -3,8 +3,8 @@ include ../../shared.mk
SDIR = src/rust
rustlib:
- $(PP_GEN) $(SDIR)/target/wasm32-wasi
- $(v)cargo build --target=wasm32-wasi
+ $(PP_GEN) $(SDIR)/target/wasm32-wasip1
+ $(v)cargo build --target=wasm32-wasip1
clean:
rm -f Cargo.lock unit-wasm-sys/Cargo.lock
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