diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-08-27 06:47:53 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-08-28 22:18:37 +0100 |
commit | 264f4af44c1d054b6d676877c53ae163a7da7055 (patch) | |
tree | 0c8b9a865565258366c4c2866aceadaf947ec6e6 | |
parent | f4298f94292b99e7f384f8048e695b8263d495f2 (diff) | |
download | unit-264f4af44c1d054b6d676877c53ae163a7da7055.tar.gz unit-264f4af44c1d054b6d676877c53ae163a7da7055.tar.bz2 |
test/wasm-wc: Target wasm32-wasip1
Changes are afoot... wasm32-wasi has been renamed wasm32-wasip1, there
is also a wasm32-wasip2 (seems not yet fully realised) and wasm32-wasi
is being kept clear for an eventual WASI 1.0 release.
cargo-component targets wasm32-wasip1 by default and adapts the module
to the preview2 version of WASI supported by the component model.
This means that the component is now found under
target/wasm32-wasip1/...
Link: <https://doc.rust-lang.org/nightly/rustc/platform-support/wasm32-wasip1.html>
Link: <https://github.com/bytecodealliance/cargo-component/blob/main/README.md#wasi-support>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r-- | test/unit/applications/lang/wasm_component.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/applications/lang/wasm_component.py b/test/unit/applications/lang/wasm_component.py index 6f7b5518..1d58afd6 100644 --- a/test/unit/applications/lang/wasm_component.py +++ b/test/unit/applications/lang/wasm_component.py @@ -41,7 +41,7 @@ class ApplicationWasmComponent(ApplicationProto): def load(self, script, **kwargs): self.prepare_env(script) - component_path = f'{option.temp_dir}/wasm_component/{script}/target/wasm32-wasi/release/test_wasi_component.wasm' + component_path = f'{option.temp_dir}/wasm_component/{script}/target/wasm32-wasip1/release/test_wasi_component.wasm' self._load_conf( { |