Skip to content

Commit 727ea86

Browse files
committed
chore(build): rename rust target wasm32-wasi to wasm32-wasip1
See https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets.html and rust-lang/rust#126662
1 parent 6d7bf68 commit 727ea86

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/actions/build-wasm-test-filters/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ runs:
3737
toolchain: stable
3838
override: true
3939
components: cargo
40-
target: wasm32-wasi
40+
target: wasm32-wasip1
4141

4242
- name: cargo build
4343
if: steps.restore-cache.outputs.cache-hit != 'true'
@@ -50,7 +50,7 @@ runs:
5050
--manifest-path "${{ env.WASM_FILTER_PATH }}/Cargo.toml"
5151
--workspace
5252
--lib
53-
--target wasm32-wasi
53+
--target wasm32-wasip1
5454
--release
5555
5656
- name: Save cache
@@ -71,7 +71,7 @@ runs:
7171
run: |
7272
ln -sfv \
7373
--no-target-directory \
74-
"${{ env.WASM_FILTER_PATH }}"/target/wasm32-wasi/release \
74+
"${{ env.WASM_FILTER_PATH }}"/target/wasm32-wasip1/release \
7575
"${{ env.WASM_FIXTURE_PATH }}"
7676
7777
- name: debug

scripts/build-wasm-test-filters.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
set -euo pipefail
2121

22-
readonly BUILD_TARGET=wasm32-wasi
22+
readonly BUILD_TARGET=wasm32-wasip1
2323
readonly FIXTURE_PATH=${PWD}/spec/fixtures/proxy_wasm_filters
2424

2525
readonly INSTALL_ROOT=${PWD}/bazel-bin/build/${BUILD_NAME:-kong-dev}

0 commit comments

Comments
 (0)