From 95add0b160b1dca9f4e614109ef30481c1d49c41 Mon Sep 17 00:00:00 2001 From: Lann Martin Date: Mon, 22 Aug 2022 11:03:02 -0400 Subject: [PATCH] Bump `wasmtime` to 0.39.1 - Bump `wit-bindgen` to a compatible revision - Update docs - Remove unnecessary wasmtime::Config options Signed-off-by: Lann Martin --- Cargo.lock | 526 ++++++++++++------ Cargo.toml | 2 +- crates/config/Cargo.toml | 2 +- crates/engine/Cargo.toml | 10 +- crates/engine/src/lib.rs | 7 +- crates/http/Cargo.toml | 10 +- .../benches/spin-http-benchmark/Cargo.lock | 24 +- .../benches/spin-http-benchmark/Cargo.toml | 2 +- crates/http/tests/rust-http-test/Cargo.lock | 24 +- crates/http/tests/rust-http-test/Cargo.toml | 2 +- crates/outbound-http/Cargo.toml | 2 +- crates/outbound-pg/Cargo.toml | 2 +- crates/outbound-redis/Cargo.toml | 4 +- crates/redis/Cargo.toml | 8 +- crates/redis/tests/rust/Cargo.lock | 24 +- crates/redis/tests/rust/Cargo.toml | 2 +- crates/trigger/Cargo.toml | 4 +- docs/content/rust-components.md | 2 +- examples/config-rust/Cargo.lock | 24 +- examples/config-rust/Cargo.toml | 2 +- examples/http-cpp/Makefile | 2 +- examples/http-cpp/README.md | 2 +- examples/http-rust-oubound-http/Cargo.lock | 24 +- examples/http-rust-oubound-http/Cargo.toml | 2 +- examples/http-rust/Cargo.lock | 24 +- examples/http-rust/Cargo.toml | 2 +- examples/redis-rust/Cargo.lock | 24 +- examples/redis-rust/Cargo.toml | 2 +- examples/rust-outbound-pg/Cargo.lock | 24 +- examples/rust-outbound-pg/Cargo.toml | 2 +- examples/rust-outbound-redis/Cargo.lock | 24 +- examples/rust-outbound-redis/Cargo.toml | 2 +- examples/spin-timer/Cargo.toml | 8 +- examples/spin-timer/example/Cargo.lock | 24 +- examples/spin-timer/example/Cargo.toml | 2 +- examples/spin-wagi-http/http-rust/Cargo.toml | 2 +- sdk/rust/Cargo.toml | 2 +- sdk/rust/macro/Cargo.toml | 6 +- templates/http-rust/content/Cargo.toml | 2 +- templates/redis-rust/content/Cargo.toml | 2 +- tests/http/headers-env-routes-test/Cargo.lock | 24 +- tests/http/headers-env-routes-test/Cargo.toml | 2 +- tests/http/simple-spin-rust/Cargo.lock | 24 +- tests/http/simple-spin-rust/Cargo.toml | 2 +- 44 files changed, 540 insertions(+), 377 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e4336de597..0e0abf2562 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,7 +116,7 @@ dependencies = [ "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.27.1", "rustc-demangle", ] @@ -282,14 +282,14 @@ checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" [[package]] name = "cap-fs-ext" -version = "0.24.2" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16812cf8cc096ebfddba83ad6cc768635f4d53eb6bd060f7b80866556493874a" +checksum = "04e142bbbe9d5d6a2dd0387f887a000b41f4c82fb1226316dfb4cc8dbc3b1a29" dependencies = [ - "cap-primitives", - "cap-std", - "io-lifetimes", - "winapi", + "cap-primitives 0.25.2", + "cap-std 0.25.2", + "io-lifetimes 0.7.3", + "windows-sys 0.36.1", ] [[package]] @@ -300,22 +300,41 @@ checksum = "ef65294d0067dd0167a84e5d50aaa52d999ab4fc7cfa59ff2ad3906afb033b36" dependencies = [ "ambient-authority", "errno", - "fs-set-times", - "io-extras", - "io-lifetimes", + "fs-set-times 0.15.0", + "io-extras 0.13.2", + "io-lifetimes 0.5.3", "ipnet", "maybe-owned", - "rustix", + "rustix 0.33.4", "winapi", "winapi-util", - "winx", + "winx 0.31.0", +] + +[[package]] +name = "cap-primitives" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f22f4975282dd4f2330ee004f001c4e22f420da9fb474ea600e9af330f1e548" +dependencies = [ + "ambient-authority", + "errno", + "fs-set-times 0.17.1", + "io-extras 0.15.0", + "io-lifetimes 0.7.3", + "ipnet", + "maybe-owned", + "rustix 0.35.9", + "winapi-util", + "windows-sys 0.36.1", + "winx 0.33.0", ] [[package]] name = "cap-rand" -version = "0.24.2" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a124986fcbe880abe9ca6aad4189de44b37dbcf6ac0079f8dd9f94b379484b94" +checksum = "ef643f8defef7061c395bb3721b6a80d39c1baaa8ee2e42edf2917fa05584e7f" dependencies = [ "ambient-authority", "rand 0.8.5", @@ -327,23 +346,36 @@ version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3430d1b5ba78fa381eb227525578d2b85d77b42ff49be85d1e72a94f305e603c" dependencies = [ - "cap-primitives", - "io-extras", - "io-lifetimes", + "cap-primitives 0.24.2", + "io-extras 0.13.2", + "io-lifetimes 0.5.3", + "ipnet", + "rustix 0.33.4", +] + +[[package]] +name = "cap-std" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95624bb0abba6b6ff6fad2e02a7d3945d093d064ac5a3477a308c29fbe3bfd49" +dependencies = [ + "cap-primitives 0.25.2", + "io-extras 0.15.0", + "io-lifetimes 0.7.3", "ipnet", - "rustix", + "rustix 0.35.9", ] [[package]] name = "cap-time-ext" -version = "0.24.2" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ee4390904645f384bd4e03125a4ed4d1167e9f195931c41323bacc8a2328ce" +checksum = "46a2d284862edf6e431e9ad4e109c02855157904cebaceae6f042b124a1a21e2" dependencies = [ - "cap-primitives", + "cap-primitives 0.25.2", "once_cell", - "rustix", - "winx", + "rustix 0.35.9", + "winx 0.33.0", ] [[package]] @@ -539,59 +571,60 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38faa2a16616c8e78a18d37b4726b98bfd2de192f2fdc8a39ddf568a408a0f75" +checksum = "529ffacce2249ac60edba2941672dfedf3d96558b415d0d8083cd007456e0f55" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26f192472a3ba23860afd07d2b0217dc628f21fcc72617aa1336d98e1671f33b" +checksum = "427d105f617efc8cb55f8d036a7fded2e227892d8780b4985e5551f8d27c4a92" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", + "cranelift-isle", "gimli", "log", - "regalloc", + "regalloc2", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f32ddb89e9b89d3d9b36a5b7d7ea3261c98235a76ac95ba46826b8ec40b1a24" +checksum = "551674bed85b838d45358e3eab4f0ffaa6790c70dc08184204b9a54b41cdb7d1" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01fd0d9f288cc1b42d9333b7a776b17e278fc888c28e6a0f09b5573d45a150bc" +checksum = "2b3a63ae57498c3eb495360944a33571754241e15e47e3bcae6082f40fec5866" [[package]] name = "cranelift-entity" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e3bfe172b83167604601faf9dc60453e0d0a93415b57a9c4d1a7ae6849185cf" +checksum = "11aa8aa624c72cc1c94ea3d0739fa61248260b5b14d3646f51593a88d67f3e6e" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a006e3e32d80ce0e4ba7f1f9ddf66066d052a8c884a110b91d05404d6ce26dce" +checksum = "544ee8f4d1c9559c9aa6d46e7aaeac4a13856d620561094f35527356c7d21bd0" dependencies = [ "cranelift-codegen", "log", @@ -599,11 +632,17 @@ dependencies = [ "target-lexicon", ] +[[package]] +name = "cranelift-isle" +version = "0.86.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed16b14363d929b8c37e3c557d0a7396791b383ecc302141643c054343170aad" + [[package]] name = "cranelift-native" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501241b0cdf903412ec9075385ac9f2b1eb18a89044d1538e97fab603231f70c" +checksum = "51617cf8744634f2ed3c989c3c40cd6444f63377c6d994adab0d85807f3eb682" dependencies = [ "cranelift-codegen", "libc", @@ -612,9 +651,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.82.3" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16d9e4211bbc3268042a96dd4de5bd979cda22434991d035f5f8eacba987fad2" +checksum = "e5a8073a41efc173fd19bad3f725c170c705df6da999fc47a738ff310225dd63" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -1127,11 +1166,22 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7df62ee66ee2d532ea8d567b5a3f0d03ecd64636b98bad5be1e93dcc918b92aa" dependencies = [ - "io-lifetimes", - "rustix", + "io-lifetimes 0.5.3", + "rustix 0.33.4", "winapi", ] +[[package]] +name = "fs-set-times" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a267b6a9304912e018610d53fe07115d8b530b160e85db4d2d3a59f3ddde1aec" +dependencies = [ + "io-lifetimes 0.7.3", + "rustix 0.35.9", + "windows-sys 0.36.1", +] + [[package]] name = "fs2" version = "0.4.3" @@ -1356,12 +1406,6 @@ version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" -[[package]] -name = "hashbrown" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" - [[package]] name = "hashbrown" version = "0.11.2" @@ -1371,6 +1415,12 @@ dependencies = [ "ahash", ] +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + [[package]] name = "heck" version = "0.3.3" @@ -1568,12 +1618,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.6.2" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3" +checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", - "hashbrown 0.9.1", + "hashbrown 0.12.3", "serde", ] @@ -1592,18 +1642,34 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0c937cc9891c12eaa8c63ad347e4a288364b1328b924886970b47a14ab8f8f8" dependencies = [ - "io-lifetimes", + "io-lifetimes 0.5.3", "winapi", ] +[[package]] +name = "io-extras" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a5d8c2ab5becd8720e30fd25f8fa5500d8dc3fceadd8378f05859bd7b46fc49" +dependencies = [ + "io-lifetimes 0.7.3", + "windows-sys 0.36.1", +] + [[package]] name = "io-lifetimes" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6" + +[[package]] +name = "io-lifetimes" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ea37f355c05dde75b84bba2d767906ad522e97cd9e2eef2be7a4ab7fb442c06" dependencies = [ "libc", - "winapi", + "windows-sys 0.36.1", ] [[package]] @@ -1614,14 +1680,14 @@ checksum = "35e70ee094dc02fd9c13fdad4940090f22dbd6ac7c9e7094a46cf0232a50bc7c" [[package]] name = "is-terminal" -version = "0.1.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c89a757e762896bdbdfadf2860d0f8b0cea5e363d8cf3e7bdfeb63d1d976352" +checksum = "0d508111813f9af3afd2f92758f77e4ed2cc9371b642112c6a48d22eb73105c5" dependencies = [ "hermit-abi 0.2.0", - "io-lifetimes", - "rustix", - "winapi", + "io-lifetimes 0.7.3", + "rustix 0.35.9", + "windows-sys 0.36.1", ] [[package]] @@ -1709,9 +1775,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.121" +version = "0.2.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efaa7b300f3b5fe8eb6bf21ce3895e1751d9665086af2d64b42f19701015ff4f" +checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5" [[package]] name = "libgit2-sys" @@ -1743,6 +1809,12 @@ version = "0.0.42" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" +[[package]] +name = "linux-raw-sys" +version = "0.0.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" + [[package]] name = "liquid" version = "0.23.1" @@ -1881,11 +1953,11 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "memfd" -version = "0.4.1" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6627dc657574b49d6ad27105ed671822be56e0d2547d413bfbf3e8d8fa92e7a" +checksum = "480b5a5de855d11ff13195950bdc8b98b5e942ef47afc447f6615cdcc4e15d80" dependencies = [ - "libc", + "rustix 0.35.9", ] [[package]] @@ -2100,17 +2172,27 @@ name = "object" version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9" +dependencies = [ + "memchr", +] + +[[package]] +name = "object" +version = "0.28.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42c982f2d955fac81dd7e1d0e1426a7d702acd9c98d19ab01083a6a0328c424" dependencies = [ "crc32fast", + "hashbrown 0.11.2", "indexmap", "memchr", ] [[package]] name = "once_cell" -version = "1.10.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9" +checksum = "074864da206b4973b84eb91683020dbefd6a8c3f0f38e054d93954e891935e4e" [[package]] name = "oorandom" @@ -2249,7 +2331,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-sys", + "windows-sys 0.32.0", ] [[package]] @@ -2711,13 +2793,14 @@ dependencies = [ ] [[package]] -name = "regalloc" -version = "0.0.34" +name = "regalloc2" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62446b1d3ebf980bdc68837700af1d77b37bc430e524bf95319c6eada2a4cc02" +checksum = "d43a209257d978ef079f3d446331d0f1794f5e0fc19b306a199983857833a779" dependencies = [ + "fxhash", "log", - "rustc-hash", + "slice-group-by", "smallvec", ] @@ -2832,12 +2915,6 @@ version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" -[[package]] -name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - [[package]] name = "rustc_version" version = "0.4.0" @@ -2855,14 +2932,30 @@ checksum = "ef7ec6a44fba95d21fa522760c03c16ca5ee95cebb6e4ef579cab3e6d7ba6c06" dependencies = [ "bitflags", "errno", - "io-lifetimes", + "io-lifetimes 0.5.3", "itoa 1.0.1", "libc", - "linux-raw-sys", + "linux-raw-sys 0.0.42", "once_cell", "winapi", ] +[[package]] +name = "rustix" +version = "0.35.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72c825b8aa8010eb9ee99b75f05e10180b9278d161583034d7574c9d617aeada" +dependencies = [ + "bitflags", + "errno", + "io-lifetimes 0.7.3", + "itoa 1.0.1", + "libc", + "linux-raw-sys 0.0.46", + "once_cell", + "windows-sys 0.36.1", +] + [[package]] name = "rustls" version = "0.20.4" @@ -3220,6 +3313,12 @@ dependencies = [ "parking_lot 0.11.2", ] +[[package]] +name = "slice-group-by" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" + [[package]] name = "smallvec" version = "1.8.0" @@ -3327,7 +3426,7 @@ version = "0.2.0" dependencies = [ "anyhow", "bytes", - "cap-std", + "cap-std 0.24.2", "dirs 4.0.0", "sanitize-filename", "spin-config", @@ -3351,7 +3450,7 @@ dependencies = [ "async-trait", "atty", "bytes", - "cap-std", + "cap-std 0.24.2", "clap 3.1.15", "criterion", "futures", @@ -3683,18 +3782,18 @@ dependencies = [ [[package]] name = "system-interface" -version = "0.20.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e09bb3fb4e02ec4b87e182ea9718fadbc0fa3e50085b40a9af9690572b67f9e" +checksum = "2e3e98c4cf2f43a7e3b3a943b63fd192559b8a98ddcbef260580f29f0f4b9d1b" dependencies = [ "atty", "bitflags", "cap-fs-ext", - "cap-std", - "io-lifetimes", - "rustix", - "winapi", - "winx", + "cap-std 0.25.2", + "io-lifetimes 0.7.3", + "rustix 0.35.9", + "windows-sys 0.36.1", + "winx 0.33.0", ] [[package]] @@ -4230,43 +4329,44 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasi-cap-std-sync" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9120fdc492d9d95cd7278b34f46fe9122962e4b2476c040f058971ccc00fc4d2" +checksum = "88ec937bd9bb960475991083c97819c6b6b953e433a0240f110d64b88f8fa516" dependencies = [ "anyhow", "async-trait", "cap-fs-ext", "cap-rand", - "cap-std", + "cap-std 0.25.2", "cap-time-ext", - "fs-set-times", - "io-extras", - "io-lifetimes", + "fs-set-times 0.17.1", + "io-extras 0.15.0", + "io-lifetimes 0.7.3", "is-terminal", "lazy_static", - "rustix", + "rustix 0.35.9", "system-interface", "tracing", "wasi-common", - "winapi", + "windows-sys 0.36.1", ] [[package]] name = "wasi-common" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab6097a5c8e9a791227a50945b6a891da6d93f518ebfa8716f231dc03f119585" +checksum = "44d94ceb7894bb90a4793e997a21096c76b17a9fa354d29b7ff78fec9c7fabc7" dependencies = [ "anyhow", "bitflags", "cap-rand", - "cap-std", - "rustix", + "cap-std 0.25.2", + "io-extras 0.15.0", + "rustix 0.35.9", "thiserror", "tracing", "wiggle", - "winapi", + "windows-sys 0.36.1", ] [[package]] @@ -4353,17 +4453,29 @@ version = "0.2.79" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d958d035c4438e28c70e4321a2911302f10135ce78a9c7834c0cab4123d06a2" +[[package]] +name = "wasm-encoder" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d443c5a7daae71697d97ec12ad70b4fe8766d3a0f4db16158ac8b781365892f7" +dependencies = [ + "leb128", +] + [[package]] name = "wasmparser" -version = "0.83.0" +version = "0.86.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" +checksum = "4bcbfe95447da2aa7ff171857fc8427513eb57c75a729bb190e974dc695e8f5c" +dependencies = [ + "indexmap", +] [[package]] name = "wasmtime" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21ffb4705016d5ca91e18a72ed6822dab50e6d5ddd7045461b17ef19071cdef1" +checksum = "0d10a6853d64e99fffdae80f93a45080475c9267f87743060814dc1186d74618" dependencies = [ "anyhow", "async-trait", @@ -4374,7 +4486,7 @@ dependencies = [ "lazy_static", "libc", "log", - "object", + "object 0.28.4", "once_cell", "paste", "psm", @@ -4390,14 +4502,14 @@ dependencies = [ "wasmtime-jit", "wasmtime-runtime", "wat", - "winapi", + "windows-sys 0.36.1", ] [[package]] name = "wasmtime-cache" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85c6ab24291fa7cb3a181f5669f6c72599b7ef781669759b45c7828c5999d0c0" +checksum = "0617b2f4c897b6a89b9d143466f3c724b9a36c6eabc443bf463f4e1ad48a2ccd" dependencies = [ "anyhow", "base64", @@ -4405,19 +4517,19 @@ dependencies = [ "directories-next", "file-per-thread-logger", "log", - "rustix", + "rustix 0.35.9", "serde", "sha2 0.9.9", "toml", - "winapi", + "windows-sys 0.36.1", "zstd", ] [[package]] name = "wasmtime-cranelift" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04c810078a491b7bc4866ebe045f714d2b95e6b539e1f64009a4a7606be11de" +checksum = "3302b33d919e8e33f1717d592c10c3cddccb318d0e1e0bef75178f579686ba94" dependencies = [ "anyhow", "cranelift-codegen", @@ -4428,7 +4540,7 @@ dependencies = [ "gimli", "log", "more-asserts", - "object", + "object 0.28.4", "target-lexicon", "thiserror", "wasmparser", @@ -4437,9 +4549,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61448266ea164b1ac406363cdcfac81c7c44db4d94c7a81c8620ac6c5c6cdf59" +checksum = "7c50fb925e8eaa9f8431f9b784ea89a13c703cb445ddfe51cb437596fc34e734" dependencies = [ "anyhow", "cranelift-entity", @@ -4447,7 +4559,7 @@ dependencies = [ "indexmap", "log", "more-asserts", - "object", + "object 0.28.4", "serde", "target-lexicon", "thiserror", @@ -4457,20 +4569,21 @@ dependencies = [ [[package]] name = "wasmtime-fiber" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbaaa38c3b48822ab27044e1d4a25a1052157de4c8f27574cb00167e127e320f" +checksum = "2f6aba0b317746e8213d1f36a4c51974e66e69c1f05bfc09ed29b4d4bda290eb" dependencies = [ "cc", - "rustix", - "winapi", + "cfg-if", + "rustix 0.35.9", + "windows-sys 0.36.1", ] [[package]] name = "wasmtime-jit" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "156b4623c6b0d4b8c24afb846c20525922f538ef464cc024abab7ea8de2109a2" +checksum = "cad81635f33ab69aa04b386c9d954aef9f6230059f66caf67e55fb65bfd2f3e0" dependencies = [ "addr2line", "anyhow", @@ -4480,35 +4593,35 @@ dependencies = [ "gimli", "ittapi-rs", "log", - "object", + "object 0.28.4", "region", "rustc-demangle", - "rustix", + "rustix 0.35.9", "serde", "target-lexicon", "thiserror", "wasmtime-environ", "wasmtime-jit-debug", "wasmtime-runtime", - "winapi", + "windows-sys 0.36.1", ] [[package]] name = "wasmtime-jit-debug" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5dc31f811760a6c76b2672c404866fd19b75e5fb3b0075a3e377a6846490654" +checksum = "55e23273fddce8cab149a0743c46932bf4910268641397ed86b46854b089f38f" dependencies = [ "lazy_static", - "object", - "rustix", + "object 0.28.4", + "rustix 0.35.9", ] [[package]] name = "wasmtime-runtime" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f907beaff69d4d920fa4688411ee4cc75c0f01859e424677f9e426e2ef749864" +checksum = "36b8aafb292502d28dc2d25f44d4a81e229bb2e0cc14ca847dde4448a1a62ae4" dependencies = [ "anyhow", "backtrace", @@ -4523,19 +4636,19 @@ dependencies = [ "more-asserts", "rand 0.8.5", "region", - "rustix", + "rustix 0.35.9", "thiserror", "wasmtime-environ", "wasmtime-fiber", "wasmtime-jit-debug", - "winapi", + "windows-sys 0.36.1", ] [[package]] name = "wasmtime-types" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514ef0e5fd197b9609dc9eb74beba0c84d5a12b2417cbae55534633329ba4852" +checksum = "dd7edc34f358fc290d12e326de81884422cb94cf74cc305b27979569875332d6" dependencies = [ "cranelift-entity", "serde", @@ -4545,9 +4658,9 @@ dependencies = [ [[package]] name = "wasmtime-wasi" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f0633261ad13d93ae84c758ce195c659a0ee57fcdbe724c8976f4b1872cdcde" +checksum = "93e02ac8bc6ab1b278bbaceacdab34c65d47cf71068e077d85eb0070a5082401" dependencies = [ "anyhow", "wasi-cap-std-sync", @@ -4567,22 +4680,23 @@ dependencies = [ [[package]] name = "wast" -version = "39.0.0" +version = "46.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9bbbd53432b267421186feee3e52436531fa69a7cfee9403f5204352df3dd05" +checksum = "ea0ab19660e3ea6891bba69167b9be40fad00fb1fe3dd39c5eebcee15607131b" dependencies = [ "leb128", "memchr", "unicode-width", + "wasm-encoder", ] [[package]] name = "wat" -version = "1.0.41" +version = "1.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab98ed25494f97c69f28758617f27c3e92e5336040b5c3a14634f2dd3fe61830" +checksum = "8f775282def4d5bffd94d60d6ecd57bfe6faa46171cdbf8d32bd5458842b1e3e" dependencies = [ - "wast 39.0.0", + "wast 46.0.0", ] [[package]] @@ -4627,9 +4741,9 @@ dependencies = [ [[package]] name = "wiggle" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36fb71c833bf174b1b34979942ff33f525b97311232ef6a0a18bcdf540ae9c91" +checksum = "9b3b67b2d53a0a2f050f9864e38048051545f45b0de447f4942b8606d938267b" dependencies = [ "anyhow", "async-trait", @@ -4642,12 +4756,12 @@ dependencies = [ [[package]] name = "wiggle-generate" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52d684c4454e953df20b5a1c3e0a8d208ef4d5a768e013f64bebfc9f74a3f739" +checksum = "bac464f2b8b4202b4d99cf6693a734e9dbb811e6e5cd4ec541ecca008d9a4a34" dependencies = [ "anyhow", - "heck 0.3.3", + "heck 0.4.0", "proc-macro2", "quote", "shellexpand", @@ -4657,9 +4771,9 @@ dependencies = [ [[package]] name = "wiggle-macro" -version = "0.35.3" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1da6c96c93eced4bf71e59ca1f06f933b84f37544a354646e37c0e5c6d5a262d" +checksum = "94d509122879d42f641d49feb7c43dbdfc38aa34dba5b53e925f87398e740da5" dependencies = [ "proc-macro2", "quote", @@ -4704,11 +4818,24 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6" dependencies = [ - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_msvc", + "windows_aarch64_msvc 0.32.0", + "windows_i686_gnu 0.32.0", + "windows_i686_msvc 0.32.0", + "windows_x86_64_gnu 0.32.0", + "windows_x86_64_msvc 0.32.0", +] + +[[package]] +name = "windows-sys" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +dependencies = [ + "windows_aarch64_msvc 0.36.1", + "windows_i686_gnu 0.36.1", + "windows_i686_msvc 0.36.1", + "windows_x86_64_gnu 0.36.1", + "windows_x86_64_msvc 0.36.1", ] [[package]] @@ -4717,30 +4844,60 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5" +[[package]] +name = "windows_aarch64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" + [[package]] name = "windows_i686_gnu" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615" +[[package]] +name = "windows_i686_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" + [[package]] name = "windows_i686_msvc" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172" +[[package]] +name = "windows_i686_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" + [[package]] name = "windows_x86_64_gnu" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc" +[[package]] +name = "windows_x86_64_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" + [[package]] name = "windows_x86_64_msvc" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316" +[[package]] +name = "windows_x86_64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" + [[package]] name = "winreg" version = "0.10.1" @@ -4757,14 +4914,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d5973cb8cd94a77d03ad7e23bbe14889cb29805da1cec0e4aff75e21aebded" dependencies = [ "bitflags", - "io-lifetimes", + "io-lifetimes 0.5.3", "winapi", ] +[[package]] +name = "winx" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7b01e010390eb263a4518c8cebf86cb67469d1511c00b749a47b64c39e8054d" +dependencies = [ + "bitflags", + "io-lifetimes 0.7.3", + "windows-sys 0.36.1", +] + [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -4772,8 +4940,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck 0.3.3", "wit-bindgen-gen-core", @@ -4781,8 +4949,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck 0.3.3", "wit-bindgen-gen-core", @@ -4791,8 +4959,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-wasmtime" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck 0.3.3", "wit-bindgen-gen-core", @@ -4801,8 +4969,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -4811,8 +4979,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -4822,8 +4990,8 @@ dependencies = [ [[package]] name = "wit-bindgen-wasmtime" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "bitflags", @@ -4834,8 +5002,8 @@ dependencies = [ [[package]] name = "wit-bindgen-wasmtime-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -4845,8 +5013,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", @@ -4899,18 +5067,18 @@ dependencies = [ [[package]] name = "zstd" -version = "0.10.0+zstd.1.5.2" +version = "0.11.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b1365becbe415f3f0fcd024e2f7b45bacfb5bdd055f0dc113571394114e7bdd" +checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "4.1.4+zstd.1.5.2" +version = "5.0.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f7cd17c9af1a4d6c24beb1cc54b17e2ef7b593dc92f19e9d9acad8b182bbaee" +checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" dependencies = [ "libc", "zstd-sys", @@ -4918,9 +5086,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "1.6.3+zstd.1.5.2" +version = "2.0.1+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc49afa5c8d634e75761feda8c592051e7eeb4683ba827211eb0d731d3402ea8" +checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b" dependencies = [ "cc", "libc", diff --git a/Cargo.toml b/Cargo.toml index 408a98b48d..fbd5c9b38b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ tracing-subscriber = { version = "0.3.7", features = [ "env-filter" ] } url = "2.2.2" uuid = "^1.0" wasi-outbound-http = { path = "crates/outbound-http" } -wasmtime = "0.35.3" +wasmtime = "0.39.1" [target.'cfg(target_os = "linux")'.dependencies] # This needs to be an explicit dependency to enable diff --git a/crates/config/Cargo.toml b/crates/config/Cargo.toml index 88de6e7c55..d7edb3c71f 100644 --- a/crates/config/Cargo.toml +++ b/crates/config/Cargo.toml @@ -8,7 +8,7 @@ authors = [ "Fermyon Engineering " ] anyhow = "1.0" serde = { version = "1.0", features = [ "derive" ] } thiserror = "1" -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [dev-dependencies] toml = "0.5" diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index 1b290d7305..03a1f0a108 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -15,11 +15,11 @@ tempfile = "3.3.0" tokio = { version = "1.10.0", features = [ "fs" ] } tracing = { version = "0.1", features = [ "log" ] } tracing-futures = "0.2" -wasi-cap-std-sync = "0.35.3" -wasi-common = "0.35.3" -wasmtime = "0.35.3" -wasmtime-wasi = "0.35.3" +wasi-cap-std-sync = "0.39.1" +wasi-common = "0.39.1" +wasmtime = "0.39.1" +wasmtime-wasi = "0.39.1" cap-std = "0.24.1" [dev-dependencies] -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 1e61a9fdf6..43bf7498ea 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -59,12 +59,7 @@ pub struct Engine(wasmtime::Engine); impl Engine { /// Create a new engine and initialize it with the given config. - pub fn new(mut config: wasmtime::Config) -> Result { - // In order for Wasmtime to run WebAssembly components, multi memory - // and module linking must always be enabled. - // See https://github.com/bytecodealliance/wit-bindgen/blob/main/crates/wasmlink. - config.wasm_multi_memory(true); - config.wasm_module_linking(true); + pub fn new(config: wasmtime::Config) -> Result { Ok(Self(wasmtime::Engine::new(&config)?)) } diff --git a/crates/http/Cargo.toml b/crates/http/Cargo.toml index 57c7e38033..7caf3cafac 100644 --- a/crates/http/Cargo.toml +++ b/crates/http/Cargo.toml @@ -37,11 +37,11 @@ tracing = { version = "0.1", features = ["log"] } tracing-futures = "0.2" tracing-subscriber = { version = "0.3.7", features = ["env-filter"] } url = "2.2" -wasi-cap-std-sync = "0.35.3" -wasi-common = "0.35.3" -wasmtime = "0.35.3" -wasmtime-wasi = "0.35.3" -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wasi-cap-std-sync = "0.39.1" +wasi-common = "0.39.1" +wasmtime = "0.39.1" +wasmtime-wasi = "0.39.1" +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [dev-dependencies] criterion = { version = "0.3.5", features = ["async_tokio"] } diff --git a/crates/http/benches/spin-http-benchmark/Cargo.lock b/crates/http/benches/spin-http-benchmark/Cargo.lock index 496b17e92e..654018cd3f 100644 --- a/crates/http/benches/spin-http-benchmark/Cargo.lock +++ b/crates/http/benches/spin-http-benchmark/Cargo.lock @@ -146,8 +146,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -155,8 +155,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -164,8 +164,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -174,8 +174,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -184,8 +184,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -195,8 +195,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/crates/http/benches/spin-http-benchmark/Cargo.toml b/crates/http/benches/spin-http-benchmark/Cargo.toml index d3a87b5c42..9288d83be1 100644 --- a/crates/http/benches/spin-http-benchmark/Cargo.toml +++ b/crates/http/benches/spin-http-benchmark/Cargo.toml @@ -7,6 +7,6 @@ crate-type = [ "cdylib" ] [dependencies] - wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } + wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] diff --git a/crates/http/tests/rust-http-test/Cargo.lock b/crates/http/tests/rust-http-test/Cargo.lock index 0059b14fc7..fa68e69e13 100644 --- a/crates/http/tests/rust-http-test/Cargo.lock +++ b/crates/http/tests/rust-http-test/Cargo.lock @@ -146,8 +146,8 @@ checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -155,8 +155,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -164,8 +164,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -174,8 +174,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -184,8 +184,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -195,8 +195,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/crates/http/tests/rust-http-test/Cargo.toml b/crates/http/tests/rust-http-test/Cargo.toml index 548e04ba31..53f4b5267e 100644 --- a/crates/http/tests/rust-http-test/Cargo.toml +++ b/crates/http/tests/rust-http-test/Cargo.toml @@ -8,6 +8,6 @@ crate-type = [ "cdylib" ] [dependencies] - wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } + wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] diff --git a/crates/outbound-http/Cargo.toml b/crates/outbound-http/Cargo.toml index 40f7d01081..7c0ed02bcb 100644 --- a/crates/outbound-http/Cargo.toml +++ b/crates/outbound-http/Cargo.toml @@ -19,4 +19,4 @@ tokio = { version = "1.4.0", features = [ "full" ] } tracing = { version = "0.1", features = [ "log" ] } tracing-futures = "0.2" url = "2.2.1" -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } diff --git a/crates/outbound-pg/Cargo.toml b/crates/outbound-pg/Cargo.toml index 448b2c86e0..769ec0318b 100644 --- a/crates/outbound-pg/Cargo.toml +++ b/crates/outbound-pg/Cargo.toml @@ -12,4 +12,4 @@ postgres = { version = "0.19.3" } spin-engine = { path = "../engine" } spin-manifest = { path = "../manifest" } tracing = { version = "0.1", features = [ "log" ] } -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } diff --git a/crates/outbound-redis/Cargo.toml b/crates/outbound-redis/Cargo.toml index 06b00ec856..7e65bea559 100644 --- a/crates/outbound-redis/Cargo.toml +++ b/crates/outbound-redis/Cargo.toml @@ -8,10 +8,10 @@ doctest = false [dependencies] anyhow = "1.0" +owning_ref = "0.4.1" redis = { version = "0.21", features = [ "tokio-comp" ] } spin-engine = { path = "../engine" } spin-manifest = { path = "../manifest" } -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } tracing = { version = "0.1", features = [ "log" ] } tracing-futures = "0.2" -owning_ref = "0.4.1" +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } \ No newline at end of file diff --git a/crates/redis/Cargo.toml b/crates/redis/Cargo.toml index 86dd13a27d..ccfbe0fe5f 100644 --- a/crates/redis/Cargo.toml +++ b/crates/redis/Cargo.toml @@ -22,10 +22,10 @@ tokio = { version = "1.14", features = [ "full" ] } tracing = { version = "0.1", features = [ "log" ] } tracing-futures = "0.2" tracing-subscriber = { version = "0.3.7", features = [ "env-filter" ] } -wasi-common = "0.35.3" -wasmtime = "0.35.3" -wasmtime-wasi = "0.35.3" -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wasi-common = "0.39.1" +wasmtime = "0.39.1" +wasmtime-wasi = "0.39.1" +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [dev-dependencies] spin-testing = { path = "../testing" } diff --git a/crates/redis/tests/rust/Cargo.lock b/crates/redis/tests/rust/Cargo.lock index e88afd068e..96a34ef6e0 100644 --- a/crates/redis/tests/rust/Cargo.lock +++ b/crates/redis/tests/rust/Cargo.lock @@ -146,8 +146,8 @@ checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -155,8 +155,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -164,8 +164,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -174,8 +174,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -184,8 +184,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -195,8 +195,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/crates/redis/tests/rust/Cargo.toml b/crates/redis/tests/rust/Cargo.toml index c1dd2e19d8..1c5fb9bc3c 100644 --- a/crates/redis/tests/rust/Cargo.toml +++ b/crates/redis/tests/rust/Cargo.toml @@ -8,6 +8,6 @@ crate-type = [ "cdylib" ] [dependencies] - wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } + wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] diff --git a/crates/trigger/Cargo.toml b/crates/trigger/Cargo.toml index 3f8d8a31d9..2bf1cd96ee 100644 --- a/crates/trigger/Cargo.toml +++ b/crates/trigger/Cargo.toml @@ -9,6 +9,7 @@ anyhow = "1.0" async-trait = "0.1" clap = { version = "3.1.15", features = ["derive", "env"] } ctrlc = { version = "3.2", features = ["termination"] } +dotenvy = "0.15.1" futures = "0.3" http = "0.2" outbound-redis = { path = "../outbound-redis" } @@ -20,5 +21,4 @@ spin-loader = { path = "../loader" } spin-manifest = { path = "../manifest" } tracing = { version = "0.1", features = [ "log" ] } wasi-outbound-http = { path = "../outbound-http" } -wasmtime = "0.35.3" -dotenvy = "0.15.1" +wasmtime = "0.39.1" \ No newline at end of file diff --git a/docs/content/rust-components.md b/docs/content/rust-components.md index 10d9da628a..1bdf0b62be 100644 --- a/docs/content/rust-components.md +++ b/docs/content/rust-components.md @@ -320,7 +320,7 @@ http = "0.2" # The Spin SDK. spin-sdk = { git = "https://github.com/fermyon/spin" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } ``` At the time of this writing, `wit-bindgen` must be pinned to a specific `rev`. diff --git a/examples/config-rust/Cargo.lock b/examples/config-rust/Cargo.lock index 35e4a659ed..ee3eae4e12 100644 --- a/examples/config-rust/Cargo.lock +++ b/examples/config-rust/Cargo.lock @@ -234,8 +234,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -243,8 +243,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -252,8 +252,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -262,8 +262,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -272,8 +272,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -283,8 +283,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/examples/config-rust/Cargo.toml b/examples/config-rust/Cargo.toml index 50c8063019..bdac1c01ed 100644 --- a/examples/config-rust/Cargo.toml +++ b/examples/config-rust/Cargo.toml @@ -16,6 +16,6 @@ http = "0.2" # The Spin SDK. spin-sdk = { path = "../../sdk/rust" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] \ No newline at end of file diff --git a/examples/http-cpp/Makefile b/examples/http-cpp/Makefile index e609306c42..b839f7860d 100644 --- a/examples/http-cpp/Makefile +++ b/examples/http-cpp/Makefile @@ -3,7 +3,7 @@ # sudo mv wasi-sdk-14.0 /opt/wasi-sdk WASI_CC ?= /opt/wasi-sdk/bin/clang -# cargo install --git https://github.com/bytecodealliance/wit-bindgen --rev dde4694aaa6acf9370206527a798ac4ba6a8c5b8 wit-bindgen-cli +# cargo install --git https://github.com/bytecodealliance/wit-bindgen --rev cb871cfa1ee460b51eb1d144b175b9aab9c50aba wit-bindgen-cli WIT_BINDGEN ?= wit-bindgen lib.wasm: lib.o spin-http.o diff --git a/examples/http-cpp/README.md b/examples/http-cpp/README.md index 3e1e7707c8..4c8da5f642 100644 --- a/examples/http-cpp/README.md +++ b/examples/http-cpp/README.md @@ -22,7 +22,7 @@ Then install a compatible version of writing, Spin uses a specific revision, which you can install like so: ```bash -cargo install --git https://github.com/bytecodealliance/wit-bindgen --rev dde4694aaa6acf9370206527a798ac4ba6a8c5b8 wit-bindgen-cli +cargo install --git https://github.com/bytecodealliance/wit-bindgen --rev cb871cfa1ee460b51eb1d144b175b9aab9c50aba wit-bindgen-cli ``` Finally, build and run the example from within this directory: diff --git a/examples/http-rust-oubound-http/Cargo.lock b/examples/http-rust-oubound-http/Cargo.lock index a06ed68d3d..06b733deb1 100644 --- a/examples/http-rust-oubound-http/Cargo.lock +++ b/examples/http-rust-oubound-http/Cargo.lock @@ -228,8 +228,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -237,8 +237,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -246,8 +246,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -256,8 +256,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -266,8 +266,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -277,8 +277,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/examples/http-rust-oubound-http/Cargo.toml b/examples/http-rust-oubound-http/Cargo.toml index ec863eea09..97446457ce 100644 --- a/examples/http-rust-oubound-http/Cargo.toml +++ b/examples/http-rust-oubound-http/Cargo.toml @@ -16,6 +16,6 @@ http = "0.2" # The Spin SDK. spin-sdk = { path = "../../sdk/rust" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] \ No newline at end of file diff --git a/examples/http-rust/Cargo.lock b/examples/http-rust/Cargo.lock index 8a7881e68d..df527ec70c 100644 --- a/examples/http-rust/Cargo.lock +++ b/examples/http-rust/Cargo.lock @@ -228,8 +228,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -237,8 +237,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -246,8 +246,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -256,8 +256,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -266,8 +266,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -277,8 +277,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/examples/http-rust/Cargo.toml b/examples/http-rust/Cargo.toml index dc8e6dfa54..6a639603ea 100644 --- a/examples/http-rust/Cargo.toml +++ b/examples/http-rust/Cargo.toml @@ -16,6 +16,6 @@ http = "0.2" # The Spin SDK. spin-sdk = { path = "../../sdk/rust" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] \ No newline at end of file diff --git a/examples/redis-rust/Cargo.lock b/examples/redis-rust/Cargo.lock index 52c5ce797c..3b3dc011f7 100644 --- a/examples/redis-rust/Cargo.lock +++ b/examples/redis-rust/Cargo.lock @@ -227,8 +227,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -236,8 +236,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -245,8 +245,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -255,8 +255,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -265,8 +265,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -276,8 +276,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/examples/redis-rust/Cargo.toml b/examples/redis-rust/Cargo.toml index 6b0eec1646..2cb01d3f16 100644 --- a/examples/redis-rust/Cargo.toml +++ b/examples/redis-rust/Cargo.toml @@ -14,6 +14,6 @@ bytes = "1" # The Spin SDK. spin-sdk = { path = "../../sdk/rust" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] \ No newline at end of file diff --git a/examples/rust-outbound-pg/Cargo.lock b/examples/rust-outbound-pg/Cargo.lock index 522d98066e..a1108f402c 100644 --- a/examples/rust-outbound-pg/Cargo.lock +++ b/examples/rust-outbound-pg/Cargo.lock @@ -228,8 +228,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -237,8 +237,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -246,8 +246,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -256,8 +256,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -266,8 +266,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -277,8 +277,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/examples/rust-outbound-pg/Cargo.toml b/examples/rust-outbound-pg/Cargo.toml index 71fec82656..eb9c7b47f3 100644 --- a/examples/rust-outbound-pg/Cargo.toml +++ b/examples/rust-outbound-pg/Cargo.toml @@ -16,7 +16,7 @@ http = "0.2" # The Spin SDK. spin-sdk = { path = "../../sdk/rust" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } diff --git a/examples/rust-outbound-redis/Cargo.lock b/examples/rust-outbound-redis/Cargo.lock index 685b516a7b..efcbb9c21a 100644 --- a/examples/rust-outbound-redis/Cargo.lock +++ b/examples/rust-outbound-redis/Cargo.lock @@ -228,8 +228,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -237,8 +237,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -246,8 +246,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -256,8 +256,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -266,8 +266,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -277,8 +277,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/examples/rust-outbound-redis/Cargo.toml b/examples/rust-outbound-redis/Cargo.toml index bd339159fd..1073429ce1 100644 --- a/examples/rust-outbound-redis/Cargo.toml +++ b/examples/rust-outbound-redis/Cargo.toml @@ -16,6 +16,6 @@ http = "0.2" # The Spin SDK. spin-sdk = { path = "../../sdk/rust" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] diff --git a/examples/spin-timer/Cargo.toml b/examples/spin-timer/Cargo.toml index 502d474dd8..9aff03f487 100644 --- a/examples/spin-timer/Cargo.toml +++ b/examples/spin-timer/Cargo.toml @@ -18,7 +18,7 @@ tokio = { version = "1.14", features = [ "full" ] } tracing = { version = "0.1", features = [ "log" ] } tracing-futures = "0.2" tracing-subscriber = { version = "0.3.7", features = [ "env-filter" ] } -wasi-common = "0.35.3" -wasmtime = "0.35.3" -wasmtime-wasi = "0.35.3" -wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wasi-common = "0.39.1" +wasmtime = "0.39.1" +wasmtime-wasi = "0.39.1" +wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } diff --git a/examples/spin-timer/example/Cargo.lock b/examples/spin-timer/example/Cargo.lock index 7cfd0b1dc6..f727412064 100644 --- a/examples/spin-timer/example/Cargo.lock +++ b/examples/spin-timer/example/Cargo.lock @@ -146,8 +146,8 @@ checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -155,8 +155,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -164,8 +164,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -174,8 +174,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -184,8 +184,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -195,8 +195,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/examples/spin-timer/example/Cargo.toml b/examples/spin-timer/example/Cargo.toml index dbcc7fb6cd..009a6f8247 100644 --- a/examples/spin-timer/example/Cargo.toml +++ b/examples/spin-timer/example/Cargo.toml @@ -7,6 +7,6 @@ crate-type = [ "cdylib" ] [dependencies] - wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } + wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] diff --git a/examples/spin-wagi-http/http-rust/Cargo.toml b/examples/spin-wagi-http/http-rust/Cargo.toml index d9946e3d10..399c8f945d 100644 --- a/examples/spin-wagi-http/http-rust/Cargo.toml +++ b/examples/spin-wagi-http/http-rust/Cargo.toml @@ -16,6 +16,6 @@ http = "0.2" # The Spin SDK. spin-sdk = { path = "../../../sdk/rust" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] diff --git a/sdk/rust/Cargo.toml b/sdk/rust/Cargo.toml index 8dde36fcfc..f7a4086566 100644 --- a/sdk/rust/Cargo.toml +++ b/sdk/rust/Cargo.toml @@ -12,4 +12,4 @@ bytes = "1" form_urlencoded = "1.0" http = "0.2" spin-macro = {path = "macro"} -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } diff --git a/sdk/rust/macro/Cargo.toml b/sdk/rust/macro/Cargo.toml index fdd6a21459..59a8ab8ff2 100644 --- a/sdk/rust/macro/Cargo.toml +++ b/sdk/rust/macro/Cargo.toml @@ -14,6 +14,6 @@ http = "0.2" proc-macro2 = "1" quote = "1.0" syn = { version = "1.0", features = [ "full" ]} -wit-bindgen-gen-rust-wasm = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } -wit-bindgen-gen-core = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-gen-rust-wasm = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } +wit-bindgen-gen-core = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } diff --git a/templates/http-rust/content/Cargo.toml b/templates/http-rust/content/Cargo.toml index 2122a7a6d6..a0b143b137 100644 --- a/templates/http-rust/content/Cargo.toml +++ b/templates/http-rust/content/Cargo.toml @@ -18,6 +18,6 @@ http = "0.2" # The Spin SDK. spin-sdk = { git = "https://github.com/fermyon/spin", tag = "v0.4.0" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] \ No newline at end of file diff --git a/templates/redis-rust/content/Cargo.toml b/templates/redis-rust/content/Cargo.toml index 845db9d090..37ef267e0a 100644 --- a/templates/redis-rust/content/Cargo.toml +++ b/templates/redis-rust/content/Cargo.toml @@ -18,6 +18,6 @@ log = { version = "0.4", default-features = false } # The Spin SDK. spin-sdk = { git = "https://github.com/fermyon/spin", tag = "v0.4.0" } # Crate that generates Rust Wasm bindings from a WebAssembly interface. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] \ No newline at end of file diff --git a/tests/http/headers-env-routes-test/Cargo.lock b/tests/http/headers-env-routes-test/Cargo.lock index fefb9d3619..09bec55446 100644 --- a/tests/http/headers-env-routes-test/Cargo.lock +++ b/tests/http/headers-env-routes-test/Cargo.lock @@ -146,8 +146,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -155,8 +155,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -164,8 +164,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -174,8 +174,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -184,8 +184,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -195,8 +195,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/tests/http/headers-env-routes-test/Cargo.toml b/tests/http/headers-env-routes-test/Cargo.toml index b9ba26f4c4..d94022dee0 100644 --- a/tests/http/headers-env-routes-test/Cargo.toml +++ b/tests/http/headers-env-routes-test/Cargo.toml @@ -8,7 +8,7 @@ crate-type = [ "cdylib" ] [dependencies] # The wit-bindgen-rust dependency generates bindings for interfaces. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace] diff --git a/tests/http/simple-spin-rust/Cargo.lock b/tests/http/simple-spin-rust/Cargo.lock index 5a15aa8528..3b11a97c31 100644 --- a/tests/http/simple-spin-rust/Cargo.lock +++ b/tests/http/simple-spin-rust/Cargo.lock @@ -228,8 +228,8 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wit-bindgen-gen-core" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "wit-parser", @@ -237,8 +237,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -246,8 +246,8 @@ dependencies = [ [[package]] name = "wit-bindgen-gen-rust-wasm" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "heck", "wit-bindgen-gen-core", @@ -256,8 +256,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "async-trait", "bitflags", @@ -266,8 +266,8 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-impl" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "proc-macro2", "syn", @@ -277,8 +277,8 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.1.0" -source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=dde4694aaa6acf9370206527a798ac4ba6a8c5b8#dde4694aaa6acf9370206527a798ac4ba6a8c5b8" +version = "0.2.0" +source = "git+https://github.com/bytecodealliance/wit-bindgen?rev=cb871cfa1ee460b51eb1d144b175b9aab9c50aba#cb871cfa1ee460b51eb1d144b175b9aab9c50aba" dependencies = [ "anyhow", "id-arena", diff --git a/tests/http/simple-spin-rust/Cargo.toml b/tests/http/simple-spin-rust/Cargo.toml index 2e002be3df..4716bcba53 100644 --- a/tests/http/simple-spin-rust/Cargo.toml +++ b/tests/http/simple-spin-rust/Cargo.toml @@ -15,7 +15,7 @@ bytes = "1" http = "0.2" spin-sdk = { path = "../../../sdk/rust"} # The wit-bindgen-rust dependency generates bindings for interfaces. -wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" } +wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" } [workspace]