Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Use `wasip{1,2}` crates, not `wasi` (#11673)

Alex Crichtonbbea2c461a58
diff --git a/Cargo.lock b/Cargo.lock
index f6790c73ac..b771352625 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1310,7 +1310,7 @@ dependencies = [
name = "example-component-wasm"
version = "0.0.0"
dependencies = [
- "wit-bindgen",
+ "wit-bindgen 0.46.0",
]
[[package]]
@@ -1321,7 +1321,7 @@ version = "0.0.0"
name = "example-resource-component-wasm"
version = "0.1.0"
dependencies = [
- "wit-bindgen",
+ "wit-bindgen 0.46.0",
]
[[package]]
@@ -3632,10 +3632,10 @@ dependencies = [
"once_cell",
"sha2",
"url",
- "wasi 0.11.0+wasi-snapshot-preview1",
- "wasi 0.14.0+wasi-0.2.3",
"wasi-nn",
- "wit-bindgen",
+ "wasip1",
+ "wasip2",
+ "wit-bindgen 0.46.0",
]
[[package]]
@@ -4121,16 +4121,7 @@ version = "0.13.3+wasi-0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2"
dependencies = [
- "wit-bindgen-rt 0.33.0",
-]
-
-[[package]]
-name = "wasi"
-version = "0.14.0+wasi-0.2.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3d67b0bdfec72b9fbaba698033291c327ef19ce3b34efbdcd7dc402a53850d9"
-dependencies = [
- "wit-bindgen-rt 0.37.0",
+ "wit-bindgen-rt",
]
[[package]]
@@ -4184,6 +4175,21 @@ dependencies = [
"wit-bindgen-rust-macro",
]
+[[package]]
+name = "wasip1"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b5e26842486624357dbeb8f0381cf1fb42f022291fd787d4a816768fec8cc760"
+
+[[package]]
+name = "wasip2"
+version = "1.0.0+wasi-0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03fa2761397e5bd52002cd7e73110c71af2109aca4e521a9f40473fe685b0a24"
+dependencies = [
+ "wit-bindgen 0.45.1",
+]
+
[[package]]
name = "wasm-bindgen"
version = "0.2.97"
@@ -5502,6 +5508,15 @@ dependencies = [
"windows-sys 0.52.0",
]
+[[package]]
+name = "wit-bindgen"
+version = "0.45.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c573471f125075647d03df72e026074b7203790d41351cd6edc96f46bcccd36"
+dependencies = [
+ "bitflags 2.6.0",
+]
+
[[package]]
name = "wit-bindgen"
version = "0.46.0"
@@ -5534,15 +5549,6 @@ dependencies = [
"bitflags 2.6.0",
]
-[[package]]
-name = "wit-bindgen-rt"
-version = "0.37.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc801b991c56492f87ab3086e786468f75c285a4d73017ab0ebc2fa1aed5d82c"
-dependencies = [
- "bitflags 2.6.0",
-]
-
[[package]]
name = "wit-bindgen-rust"
version = "0.46.0"
diff --git a/crates/test-programs/Cargo.toml b/crates/test-programs/Cargo.toml
index 7856fedd0a..26ad3b0b6a 100644
--- a/crates/test-programs/Cargo.toml
+++ b/crates/test-programs/Cargo.toml
@@ -19,7 +19,7 @@ futures = { workspace = true, default-features = false, features = ['alloc'] }
url = { workspace = true }
sha2 = "0.10.2"
base64 = { workspace = true }
-wasip1 = { version = "0.11.0", package = 'wasi' }
-wasip2 = { version = "0.14.0", package = 'wasi' }
+wasip1 = "1.0.0"
+wasip2 = "1.0.0"
once_cell = "1.19.0"
flate2 = "1.0.28"
diff --git a/supply-chain/audits.toml b/supply-chain/audits.toml
index 59d1c3c5a4..f2932f3b44 100644
--- a/supply-chain/audits.toml
+++ b/supply-chain/audits.toml
@@ -264,6 +264,16 @@ by a member of the Bytecode Alliance and plan to continue doing so and will
actively maintain this crate over time.
"""
+[[wildcard-audits.wasi]]
+who = "Alex Crichton <[email protected]>"
+criteria = "safe-to-deploy"
+user-id = 1 # Alex Crichton (alexcrichton)
+start = "2025-08-10"
+end = "2026-08-21"
+notes = """
+This is a Bytecode Alliance authored crate.
+"""
+
[[wildcard-audits.wasi-cap-std-sync]]
who = "Bobby Holley <[email protected]>"
criteria = "safe-to-deploy"
@@ -288,6 +298,36 @@ start = "2021-10-29"
end = "2026-08-21"
notes = "The Bytecode Alliance is the author of this crate."
+[[wildcard-audits.wasip1]]
+who = "Alex Crichton <[email protected]>"
+criteria = "safe-to-deploy"
+user-id = 1 # Alex Crichton (alexcrichton)
+start = "2025-08-10"
+end = "2026-08-21"
+notes = """
+This is a Bytecode Alliance authored crate.
+"""
+
+[[wildcard-audits.wasip2]]
+who = "Alex Crichton <[email protected]>"
+criteria = "safe-to-deploy"
+user-id = 1 # Alex Crichton (alexcrichton)
+start = "2025-08-10"
+end = "2026-08-21"
+notes = """
+This is a Bytecode Alliance authored crate.
+"""
+
+[[wildcard-audits.wasip3]]
+who = "Alex Crichton <[email protected]>"
+criteria = "safe-to-deploy"
+user-id = 1 # Alex Crichton (alexcrichton)
+start = "2025-09-10"
+end = "2026-08-21"
+notes = """
+This is a Bytecode Alliance authored crate.
+"""
+
[[wildcard-audits.wasm-compose]]
who = "Alex Crichton <[email protected]>"
criteria = "safe-to-deploy"
diff --git a/supply-chain/imports.lock b/supply-chain/imports.lock
index b6be0d5cf5..72917e274b 100644
--- a/supply-chain/imports.lock
+++ b/supply-chain/imports.lock
@@ -1284,6 +1284,20 @@ when = "2025-08-26"
user-id = 73222
user-login = "wasmtime-publish"
+[[publisher.wasip1]]
+version = "1.0.0"
+when = "2025-09-09"
+user-id = 1
+user-login = "alexcrichton"
+user-name = "Alex Crichton"
+
+[[publisher.wasip2]]
+version = "1.0.0+wasi-0.2.4"
+when = "2025-09-09"
+user-id = 1
+user-login = "alexcrichton"
+user-name = "Alex Crichton"
+
[[publisher.wasm-bindgen]]
version = "0.2.97"
when = "2024-11-30"