Browse Source

Update dependency on `wit-bindgen` (#8911)

* Update dependency on `wit-bindgen`

Updating to the latest released version.

* Add vets

* Fix build of test-programs
pull/8918/head
Alex Crichton 4 months ago
committed by GitHub
parent
commit
510ef9f822
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 174
      Cargo.lock
  2. 4
      Cargo.toml
  3. 1
      crates/test-programs/src/bin/api_reactor.rs
  4. 15
      crates/test-programs/src/lib.rs
  5. 3
      crates/wasi-preview1-component-adapter/src/lib.rs
  6. 37
      supply-chain/imports.lock

174
Cargo.lock

@ -841,7 +841,7 @@ dependencies = [
"serde_derive",
"smallvec",
"target-lexicon",
"wasmparser 0.212.0",
"wasmparser",
"wasmtime-types",
"wat",
]
@ -2094,9 +2094,9 @@ dependencies = [
[[package]]
name = "prettyplease"
version = "0.2.19"
version = "0.2.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ac2cf0f2e4f42b49f5ffd07dae8d746508ef7526c13940e5f524012ae6c6550"
checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e"
dependencies = [
"proc-macro2",
"syn 2.0.60",
@ -2752,7 +2752,7 @@ dependencies = [
"cargo_metadata",
"heck 0.4.0",
"wasmtime",
"wit-component 0.212.0",
"wit-component",
]
[[package]]
@ -3082,7 +3082,7 @@ name = "verify-component-adapter"
version = "24.0.0"
dependencies = [
"anyhow",
"wasmparser 0.212.0",
"wasmparser",
"wat",
]
@ -3175,7 +3175,7 @@ dependencies = [
"byte-array-literals",
"object 0.36.0",
"wasi",
"wasm-encoder 0.212.0",
"wasm-encoder",
"wit-bindgen-rust-macro",
]
@ -3233,15 +3233,6 @@ version = "0.2.87"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
[[package]]
name = "wasm-encoder"
version = "0.209.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b4a05336882dae732ce6bd48b7e11fe597293cb72c13da4f35d7d5f8d53b2a7"
dependencies = [
"leb128",
]
[[package]]
name = "wasm-encoder"
version = "0.212.0"
@ -3249,23 +3240,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "501940df4418b8929eb6d52f1aade1fdd15a5b86c92453cb696e3c906bd3fc33"
dependencies = [
"leb128",
"wasmparser 0.212.0",
]
[[package]]
name = "wasm-metadata"
version = "0.209.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d32029ce424f6d3c2b39b4419fb45a0e2d84fb0751e0c0a32b7ce8bd5d97f46"
dependencies = [
"anyhow",
"indexmap 2.2.6",
"serde",
"serde_derive",
"serde_json",
"spdx",
"wasm-encoder 0.209.1",
"wasmparser 0.209.1",
"wasmparser",
]
[[package]]
@ -3280,8 +3255,8 @@ dependencies = [
"serde_derive",
"serde_json",
"spdx",
"wasm-encoder 0.212.0",
"wasmparser 0.212.0",
"wasm-encoder",
"wasmparser",
]
[[package]]
@ -3294,8 +3269,8 @@ dependencies = [
"log",
"rand",
"thiserror",
"wasm-encoder 0.212.0",
"wasmparser 0.212.0",
"wasm-encoder",
"wasmparser",
]
[[package]]
@ -3309,7 +3284,7 @@ dependencies = [
"flagset",
"indexmap 2.2.6",
"leb128",
"wasm-encoder 0.212.0",
"wasm-encoder",
]
[[package]]
@ -3352,19 +3327,6 @@ dependencies = [
"paste",
]
[[package]]
name = "wasmparser"
version = "0.209.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07035cc9a9b41e62d3bb3a3815a66ab87c993c06fe1cf6b2a3f2a18499d937db"
dependencies = [
"ahash",
"bitflags 2.4.1",
"hashbrown 0.14.3",
"indexmap 2.2.6",
"semver",
]
[[package]]
name = "wasmparser"
version = "0.212.0"
@ -3396,7 +3358,7 @@ checksum = "dfac65326cc561112af88c3028f6dfdb140acff67ede33a8e86be2dc6b8956f7"
dependencies = [
"anyhow",
"termcolor",
"wasmparser 0.212.0",
"wasmparser",
]
[[package]]
@ -3440,8 +3402,8 @@ dependencies = [
"target-lexicon",
"tempfile",
"wasi-common",
"wasm-encoder 0.212.0",
"wasmparser 0.212.0",
"wasm-encoder",
"wasmparser",
"wasmtime-asm-macros",
"wasmtime-cache",
"wasmtime-component-macro",
@ -3583,7 +3545,7 @@ dependencies = [
"tracing",
"walkdir",
"wasi-common",
"wasmparser 0.212.0",
"wasmparser",
"wasmtime",
"wasmtime-cache",
"wasmtime-cli-flags",
@ -3600,7 +3562,7 @@ dependencies = [
"wast 212.0.0",
"wat",
"windows-sys 0.52.0",
"wit-component 0.212.0",
"wit-component",
]
[[package]]
@ -3633,7 +3595,7 @@ dependencies = [
"wasmtime",
"wasmtime-component-util",
"wasmtime-wit-bindgen",
"wit-parser 0.212.0",
"wit-parser",
]
[[package]]
@ -3657,7 +3619,7 @@ dependencies = [
"object 0.36.0",
"target-lexicon",
"thiserror",
"wasmparser 0.212.0",
"wasmparser",
"wasmtime-environ",
"wasmtime-versioned-export-macros",
]
@ -3682,8 +3644,8 @@ dependencies = [
"serde",
"serde_derive",
"target-lexicon",
"wasm-encoder 0.212.0",
"wasmparser 0.212.0",
"wasm-encoder",
"wasmparser",
"wasmprinter",
"wasmtime-component-util",
"wasmtime-types",
@ -3698,7 +3660,7 @@ dependencies = [
"component-fuzz-util",
"env_logger",
"libfuzzer-sys",
"wasmparser 0.212.0",
"wasmparser",
"wasmprinter",
"wasmtime-environ",
"wat",
@ -3756,7 +3718,7 @@ dependencies = [
"rand",
"smallvec",
"target-lexicon",
"wasmparser 0.212.0",
"wasmparser",
"wasmtime",
"wasmtime-fuzzing",
]
@ -3777,12 +3739,12 @@ dependencies = [
"target-lexicon",
"tempfile",
"v8",
"wasm-encoder 0.212.0",
"wasm-encoder",
"wasm-mutate",
"wasm-smith",
"wasm-spec-interpreter",
"wasmi",
"wasmparser 0.212.0",
"wasmparser",
"wasmprinter",
"wasmtime",
"wasmtime-wast",
@ -3832,7 +3794,7 @@ dependencies = [
"serde",
"serde_derive",
"smallvec",
"wasmparser 0.212.0",
"wasmparser",
]
[[package]]
@ -3953,7 +3915,7 @@ dependencies = [
"gimli",
"object 0.36.0",
"target-lexicon",
"wasmparser 0.212.0",
"wasmparser",
"wasmtime-cranelift",
"wasmtime-environ",
"winch-codegen",
@ -3966,7 +3928,7 @@ dependencies = [
"anyhow",
"heck 0.4.0",
"indexmap 2.2.6",
"wit-parser 0.212.0",
"wit-parser",
]
[[package]]
@ -3992,7 +3954,7 @@ dependencies = [
"leb128",
"memchr",
"unicode-width",
"wasm-encoder 0.212.0",
"wasm-encoder",
]
[[package]]
@ -4131,7 +4093,7 @@ dependencies = [
"regalloc2",
"smallvec",
"target-lexicon",
"wasmparser 0.212.0",
"wasmparser",
"wasmtime-cranelift",
"wasmtime-environ",
]
@ -4308,9 +4270,9 @@ dependencies = [
[[package]]
name = "wit-bindgen"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a84376ff4f74ed07674a1157c0bd19e6627ab01fc90952a27ccefb52a24530f0"
checksum = "fabce76bbb8938536c437da0c3e1d4dda9065453f72a68f797c0cb3d67356a28"
dependencies = [
"wit-bindgen-rt",
"wit-bindgen-rust-macro",
@ -4318,45 +4280,48 @@ dependencies = [
[[package]]
name = "wit-bindgen-core"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36d4706efb67fadfbbde77955b299b111dd096e6776d8c6561d92f6147941880"
checksum = "1b43fbdd3497c471bbfb6973b1fb9ffe6949f158248cb43171d6f1cf3de7eaa3"
dependencies = [
"anyhow",
"heck 0.5.0",
"wit-parser 0.209.1",
"wit-parser",
]
[[package]]
name = "wit-bindgen-rt"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29c7526379ace8709ee9ab9f2bb50f112d95581063a59ef3097d9c10153886c9"
checksum = "75956ff0a04a87ca0526b07199ce3b9baee899f2e4723b5b63aa296ab172ec52"
dependencies = [
"bitflags 2.4.1",
]
[[package]]
name = "wit-bindgen-rust"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "514295193d1a2f42e6a948cd7d9fd81e2b8fadc319667dcf19fd7aceaf2113a2"
checksum = "bf509c4ef97b18ec0218741c8318706ac30ff16bc1731f990319a42bbbcfe8e3"
dependencies = [
"anyhow",
"heck 0.5.0",
"indexmap 2.2.6",
"wasm-metadata 0.209.1",
"prettyplease",
"syn 2.0.60",
"wasm-metadata",
"wit-bindgen-core",
"wit-component 0.209.1",
"wit-component",
]
[[package]]
name = "wit-bindgen-rust-macro"
version = "0.26.0"
version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0409a3356ca02599aff78f717968fd7f12df4bf879f325e2a97b45c84c90fff"
checksum = "88d6f2e025e38395d71fc1bf064e581b2ad275ce322d6f8d87ddc5e76a7b8c42"
dependencies = [
"anyhow",
"prettyplease",
"proc-macro2",
"quote",
"syn 2.0.60",
@ -4364,25 +4329,6 @@ dependencies = [
"wit-bindgen-rust",
]
[[package]]
name = "wit-component"
version = "0.209.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25a2bb5b039f9cb03425e1d5a6e54b441ca4ca1b1d4fa6a0924db67a55168f99"
dependencies = [
"anyhow",
"bitflags 2.4.1",
"indexmap 2.2.6",
"log",
"serde",
"serde_derive",
"serde_json",
"wasm-encoder 0.209.1",
"wasm-metadata 0.209.1",
"wasmparser 0.209.1",
"wit-parser 0.209.1",
]
[[package]]
name = "wit-component"
version = "0.212.0"
@ -4396,28 +4342,10 @@ dependencies = [
"serde",
"serde_derive",
"serde_json",
"wasm-encoder 0.212.0",
"wasm-metadata 0.212.0",
"wasmparser 0.212.0",
"wit-parser 0.212.0",
]
[[package]]
name = "wit-parser"
version = "0.209.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e79b9e3c0b6bb589dec46317e645851e0db2734c44e2be5e251b03ff4a51269"
dependencies = [
"anyhow",
"id-arena",
"indexmap 2.2.6",
"log",
"semver",
"serde",
"serde_derive",
"serde_json",
"unicode-xid",
"wasmparser 0.209.1",
"wasm-encoder",
"wasm-metadata",
"wasmparser",
"wit-parser",
]
[[package]]
@ -4435,7 +4363,7 @@ dependencies = [
"serde_derive",
"serde_json",
"unicode-xid",
"wasmparser 0.212.0",
"wasmparser",
]
[[package]]

4
Cargo.toml

@ -249,8 +249,8 @@ io-lifetimes = { version = "2.0.3", default-features = false }
io-extras = "0.18.1"
rustix = "0.38.31"
# wit-bindgen:
wit-bindgen = { version = "0.26.0", default-features = false }
wit-bindgen-rust-macro = { version = "0.26.0", default-features = false }
wit-bindgen = { version = "0.27.0", default-features = false }
wit-bindgen-rust-macro = { version = "0.27.0", default-features = false }
# wasm-tools family:
wasmparser = { version = "0.212.0", default-features = false }

1
crates/test-programs/src/bin/api_reactor.rs

@ -1,6 +1,7 @@
wit_bindgen::generate!({
world: "test-reactor",
path: "../wasi/wit",
generate_all,
});
struct T;

15
crates/test-programs/src/lib.rs

@ -3,7 +3,11 @@ pub mod nn;
pub mod preview1;
pub mod sockets;
wit_bindgen::generate!("test-command" in "../wasi/wit");
wit_bindgen::generate!({
world: "test-command",
path: "../wasi/wit",
generate_all,
});
pub mod proxy {
wit_bindgen::generate!({
@ -14,6 +18,15 @@ pub mod proxy {
with: {
"wasi:http/types@0.2.0": crate::wasi::http::types,
"wasi:http/outgoing-handler@0.2.0": crate::wasi::http::outgoing_handler,
"wasi:random/random@0.2.0": crate::wasi::random::random,
"wasi:io/error@0.2.0": crate::wasi::io::error,
"wasi:io/poll@0.2.0": crate::wasi::io::poll,
"wasi:io/streams@0.2.0": crate::wasi::io::streams,
"wasi:cli/stdout@0.2.0": crate::wasi::cli::stdout,
"wasi:cli/stderr@0.2.0": crate::wasi::cli::stderr,
"wasi:cli/stdin@0.2.0": crate::wasi::cli::stdin,
"wasi:clocks/monotonic-clock@0.2.0": crate::wasi::clocks::monotonic_clock,
"wasi:clocks/wall-clock@0.2.0": crate::wasi::clocks::wall_clock,
},
});
}

3
crates/wasi-preview1-component-adapter/src/lib.rs

@ -62,6 +62,7 @@ pub mod bindings {
// Instead, we manually define the bindings for these functions in
// terms of raw pointers.
skip: ["run", "get-environment", "poll"],
generate_all,
});
#[cfg(feature = "reactor")]
@ -78,6 +79,7 @@ pub mod bindings {
// Instead, we manually define the bindings for these functions in
// terms of raw pointers.
skip: ["get-environment", "poll"],
generate_all,
});
#[cfg(feature = "proxy")]
@ -99,6 +101,7 @@ pub mod bindings {
raw_strings,
runtime_path: "crate::bindings::wit_bindgen_rt_shim",
skip: ["poll"],
generate_all,
});
pub mod wit_bindgen_rt_shim {

37
supply-chain/imports.lock

@ -1770,6 +1770,13 @@ user-id = 3618
user-login = "dtolnay"
user-name = "David Tolnay"
[[publisher.prettyplease]]
version = "0.2.20"
when = "2024-05-07"
user-id = 3618
user-login = "dtolnay"
user-name = "David Tolnay"
[[publisher.proc-macro2]]
version = "1.0.81"
when = "2024-04-17"
@ -3542,6 +3549,12 @@ when = "2024-05-30"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen]]
version = "0.27.0"
when = "2024-06-28"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-core]]
version = "0.20.0"
when = "2024-02-29"
@ -3566,6 +3579,12 @@ when = "2024-05-30"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-core]]
version = "0.27.0"
when = "2024-06-28"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-rt]]
version = "0.22.0"
when = "2024-03-11"
@ -3584,6 +3603,12 @@ when = "2024-05-30"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-rt]]
version = "0.27.0"
when = "2024-06-28"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-rust]]
version = "0.20.0"
when = "2024-02-29"
@ -3608,6 +3633,12 @@ when = "2024-05-30"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-rust]]
version = "0.27.0"
when = "2024-06-28"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-rust-macro]]
version = "0.20.0"
when = "2024-02-29"
@ -3632,6 +3663,12 @@ when = "2024-05-30"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-bindgen-rust-macro]]
version = "0.27.0"
when = "2024-06-28"
user-id = 73222
user-login = "wasmtime-publish"
[[publisher.wit-component]]
version = "0.201.0"
when = "2024-02-27"

Loading…
Cancel
Save