From c0bcb23dba57d44ac54f55e79a42f1bbf90a179a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 9 Jun 2024 21:08:18 +0000 Subject: [PATCH] chore(deps): update wasmtime to v21 (major) (#172) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [wasmtime](https://togithub.com/bytecodealliance/wasmtime) | workspace.dependencies | major | `20.0.1` -> `21.0.0` | | [wasmtime-wasi](https://togithub.com/bytecodealliance/wasmtime) | workspace.dependencies | major | `20.0.1` -> `21.0.0` | --- ### Release Notes
bytecodealliance/wasmtime (wasmtime) ### [`v21.0.0`](https://togithub.com/bytecodealliance/wasmtime/blob/HEAD/RELEASES.md#2100) [Compare Source](https://togithub.com/bytecodealliance/wasmtime/compare/v20.0.2...v21.0.0) Released 2024-05-20 ##### Added - The `wasmtime explore` subcommand now supports `*.wat` files. [#​8314](https://togithub.com/bytecodealliance/wasmtime/issues/8314) - Wasmtime now supports DWARF Fission `*.dwp` files. [#​8055](https://togithub.com/bytecodealliance/wasmtime/issues/8055) - The `wasmtime` crate now supports `#![no_std]`, and more information about this transition can be found in [#​8341](https://togithub.com/bytecodealliance/wasmtime/issues/8341). [#​8463](https://togithub.com/bytecodealliance/wasmtime/issues/8463) [#​8483](https://togithub.com/bytecodealliance/wasmtime/issues/8483) [#​8485](https://togithub.com/bytecodealliance/wasmtime/issues/8485) [#​8528](https://togithub.com/bytecodealliance/wasmtime/issues/8528) [#​8533](https://togithub.com/bytecodealliance/wasmtime/issues/8533) - A `Config` knob is now available for one-entry `call_indirect` caching to speed up modules with lots of `call_indirect` instructions. [#​8509](https://togithub.com/bytecodealliance/wasmtime/issues/8509) - Cranelift's riscv64 backend has initial support for the Zfa Extension. [#​8536](https://togithub.com/bytecodealliance/wasmtime/issues/8536) - The WebAssembly `tail-calls` proposal is now enabled by default when using the Cranelift backend, except for the s390x architecture. [#​8540](https://togithub.com/bytecodealliance/wasmtime/issues/8540) ##### Changed - Support for NaN canonicalization on x64 has been optimized to avoid branches. [#​8313](https://togithub.com/bytecodealliance/wasmtime/issues/8313) - The `bindgen!` macro now defaults to assuming imports cannot trap, but this behavior is configurable at macro-generation time. [#​8310](https://togithub.com/bytecodealliance/wasmtime/issues/8310) - The `fd_{read,write}` implementations in wasmtime-wasi have been optimized. [#​8303](https://togithub.com/bytecodealliance/wasmtime/issues/8303) - The `wasmtime-wasi-http` crate has been refactored and has improved documentation. [#​8332](https://togithub.com/bytecodealliance/wasmtime/issues/8332) [#​8347](https://togithub.com/bytecodealliance/wasmtime/issues/8347) - Unused `with` parameters in `bindgen!` now generate an error. [#​8371](https://togithub.com/bytecodealliance/wasmtime/issues/8371) - The `fd_read` implementation in wasmtime-wasi now only reads into a single iovec per call. [#​8415](https://togithub.com/bytecodealliance/wasmtime/issues/8415) - The `wasmtime_val_t` type in the C API no longer holds any allocations. This type must still be manually managed to properly unroot values, however. [#​8451](https://togithub.com/bytecodealliance/wasmtime/issues/8451) - Add an optimized "sleep" path for `poll_oneoff` to wasmtime-wasi. [#​8429](https://togithub.com/bytecodealliance/wasmtime/issues/8429) - The Wasmtime-internal `wasmtime-runtime` crate has been removed. [#​8501](https://togithub.com/bytecodealliance/wasmtime/issues/8501) - The pooling allocator now allows twice as many elements as before. [#​8527](https://togithub.com/bytecodealliance/wasmtime/issues/8527) - Using CMake to build the C API has been improved along a number of axes. [#​8490](https://togithub.com/bytecodealliance/wasmtime/issues/8490) [#​8497](https://togithub.com/bytecodealliance/wasmtime/issues/8497) [#​8549](https://togithub.com/bytecodealliance/wasmtime/issues/8549) ##### Fixed - Pooling allocator CLI options are now respected with the `wasmtime serve` subcommand. [#​8525](https://togithub.com/bytecodealliance/wasmtime/issues/8525) ***
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/andrzejressel/pulumi-wasm). --- Cargo.lock | 277 +++++++++++++++---------------- Cargo.toml | 4 +- pulumi_wasm/tests/test.rs | 13 +- pulumi_wasm_runner/src/pulumi.rs | 3 +- 4 files changed, 147 insertions(+), 150 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b4bc032de..7f179fa7a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -262,15 +262,6 @@ version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - [[package]] name = "bitflags" version = "1.3.2" @@ -542,6 +533,12 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" +[[package]] +name = "cobs" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15" + [[package]] name = "colorchoice" version = "1.0.0" @@ -593,18 +590,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebf72ceaf38f7d41194d0cf6748214d8ef7389167fe09aad80f87646dbfa325b" +checksum = "29daf137addc15da6bab6eae2c4a11e274b1d270bf2759508e62f6145e863ef6" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ee7fde5cd9173f00ce02c491ee9e306d64740f4b1a697946e0474f389999e13" +checksum = "de619867d5de4c644b7fd9904d6e3295269c93d8a71013df796ab338681222d4" dependencies = [ "bumpalo", "cranelift-bforest", @@ -617,39 +614,40 @@ dependencies = [ "hashbrown 0.14.3", "log", "regalloc2", + "rustc-hash", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b49bec6a517e78d4067500dc16acb558e772491a2bcb37301127448adfb8413c" +checksum = "29f5cf277490037d8dae9513d35e0ee8134670ae4a964a5ed5b198d4249d7c10" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ead4ea497b2dc2ac31fcabd6d5d0d5dc25b3964814122e343724bdf65a53c843" +checksum = "8c3e22ecad1123343a3c09ac6ecc532bb5c184b6fcb7888df0ea953727f79924" [[package]] name = "cranelift-control" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f81e8028c8d711ea7592648e70221f2e54acb8665f7ecd49545f021ec14c3341" +checksum = "53ca3ec6d30bce84ccf59c81fead4d16381a3ef0ef75e8403bc1e7385980da09" dependencies = [ "arbitrary", ] [[package]] name = "cranelift-entity" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32acd0632ba65c2566e75f64af9ef094bb8d90e58a9fbd33d920977a9d85c054" +checksum = "7eabb8d36b0ca8906bec93c78ea516741cac2d7e6b266fa7b0ffddcc09004990" dependencies = [ "serde", "serde_derive", @@ -657,9 +655,9 @@ dependencies = [ [[package]] name = "cranelift-frontend" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a395a704934aa944ba8939cac9001174b9ae5236f48bc091f89e33bb968336f6" +checksum = "44b42630229e49a8cfcae90bdc43c8c4c08f7a7aa4618b67f79265cd2f996dd2" dependencies = [ "cranelift-codegen", "log", @@ -669,15 +667,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b325ce81c4ee7082dc894537eb342c37898e14230fe7c02ea945691db3e2dd01" +checksum = "918d1e36361805dfe0b6cdfd5a5ffdb5d03fa796170c5717d2727cbe623b93a0" [[package]] name = "cranelift-native" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea11f5ac85996fa093075d66397922d4f56085d5d84ec13043d0cd4f159c6818" +checksum = "75aea85a0d7e1800b14ce9d3f53adf8ad4d1ee8a9e23b0269bdc50285e93b9b3" dependencies = [ "cranelift-codegen", "libc", @@ -686,9 +684,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.107.2" +version = "0.108.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4f175d4e299a8edabfbd64fa93c7650836cc8ad7f4879f9bd2632575a1f12d0" +checksum = "dac491fd3473944781f0cf9528c90cc899d18ad438da21961a839a3a44d57dfb" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -696,7 +694,7 @@ dependencies = [ "itertools 0.12.1", "log", "smallvec", - "wasmparser 0.202.0", + "wasmparser 0.207.0", "wasmtime-types", ] @@ -848,6 +846,12 @@ version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" +[[package]] +name = "embedded-io" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced" + [[package]] name = "encoding_rs" version = "0.8.33" @@ -1423,6 +1427,12 @@ version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" +[[package]] +name = "libm" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" + [[package]] name = "libredox" version = "0.0.1" @@ -1820,6 +1830,17 @@ version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb" +[[package]] +name = "postcard" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a55c51ee6c0db07e68448e336cf8ea4131a620edefebf9893e759b2d793420f8" +dependencies = [ + "cobs", + "embedded-io", + "serde", +] + [[package]] name = "powerfmt" version = "0.2.0" @@ -2440,6 +2461,9 @@ name = "smallvec" version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" +dependencies = [ + "serde", +] [[package]] name = "socket2" @@ -3133,18 +3157,9 @@ checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b" [[package]] name = "wasm-encoder" -version = "0.202.0" +version = "0.207.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfd106365a7f5f7aa3c1916a98cbb3ad477f5ff96ddb130285a91c6e7429e67a" -dependencies = [ - "leb128", -] - -[[package]] -name = "wasm-encoder" -version = "0.205.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90e95b3563d164f33c1cfb0a7efbd5940c37710019be10cd09f800fdec8b0e5c" +checksum = "d996306fb3aeaee0d9157adbe2f670df0236caf19f6728b221e92d0f27b3fe17" dependencies = [ "leb128", ] @@ -3185,11 +3200,13 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.202.0" +version = "0.207.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6998515d3cf3f8b980ef7c11b29a9b1017d4cf86b99ae93b546992df9931413" +checksum = "e19bb9f8ab07616da582ef8adb24c54f1424c7ec876720b7da9db8ec0626c92c" dependencies = [ + "ahash", "bitflags 2.5.0", + "hashbrown 0.14.3", "indexmap 2.1.0", "semver", ] @@ -3209,45 +3226,55 @@ dependencies = [ [[package]] name = "wasmprinter" -version = "0.202.0" +version = "0.207.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab1cc9508685eef9502e787f4d4123745f5651a1e29aec047645d3cac1e2da7a" +checksum = "9c2d8a7b4dabb460208e6b4334d9db5766e84505038b2529e69c3d07ac619115" dependencies = [ "anyhow", - "wasmparser 0.202.0", + "wasmparser 0.207.0", ] [[package]] name = "wasmtime" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4af5cb32045daee8476711eb12b8b71275c2dd1fc7a58cc2a11b33ce9205f6a2" +checksum = "f92a1370c66a0022e6d92dcc277e2c84f5dece19569670b8ce7db8162560d8b6" dependencies = [ "addr2line", "anyhow", "async-trait", - "bincode", "bumpalo", + "cc", "cfg-if", "encoding_rs", "fxprof-processed-profile", "gimli", + "hashbrown 0.14.3", "indexmap 2.1.0", "ittapi", "libc", + "libm", "log", + "mach2", + "memfd", + "memoffset", "object 0.33.0", "once_cell", "paste", + "postcard", + "psm", "rayon", "rustix", "semver", "serde", "serde_derive", "serde_json", + "smallvec", + "sptr", "target-lexicon", - "wasm-encoder 0.202.0", - "wasmparser 0.202.0", + "wasm-encoder 0.207.0", + "wasmparser 0.207.0", + "wasmtime-asm-macros", "wasmtime-cache", "wasmtime-component-macro", "wasmtime-component-util", @@ -3256,8 +3283,8 @@ dependencies = [ "wasmtime-fiber", "wasmtime-jit-debug", "wasmtime-jit-icache-coherence", - "wasmtime-runtime", "wasmtime-slab", + "wasmtime-versioned-export-macros", "wasmtime-winch", "wat", "windows-sys 0.52.0", @@ -3265,24 +3292,24 @@ dependencies = [ [[package]] name = "wasmtime-asm-macros" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7515c4d24c8b55c0feab67e3d52a42f999fda8b9cfafbd69a82ed6bcf299d26e" +checksum = "6dee8679c974a7f258c03d60d3c747c426ed219945b6d08cbc77fd2eab15b2d1" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-cache" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3aa2de7189ea6b3270727d0027790494aec5e7101ca50da3f9549a86628cae4" +checksum = "b00103ffaf7ee980f4e750fe272b6ada79d9901659892e457c7ca316b16df9ec" dependencies = [ "anyhow", "base64", - "bincode", "directories-next", "log", + "postcard", "rustix", "serde", "serde_derive", @@ -3294,9 +3321,9 @@ dependencies = [ [[package]] name = "wasmtime-component-macro" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "794839a710a39a12677c67ff43fec54ef00d0ca6c6f631209a7c5524522221d3" +checksum = "32cae30035f1cf97dcc6657c979cf39f99ce6be93583675eddf4aeaa5548509c" dependencies = [ "anyhow", "proc-macro2", @@ -3304,20 +3331,20 @@ dependencies = [ "syn 2.0.66", "wasmtime-component-util", "wasmtime-wit-bindgen", - "wit-parser 0.202.0", + "wit-parser 0.207.0", ] [[package]] name = "wasmtime-component-util" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7839a1b9e15d17be1cb2a105f18be8e0bbf52bdec7a7cd6eb5d80d4c2cdf74f0" +checksum = "f7ae611f08cea620c67330925be28a96115bf01f8f393a6cbdf4856a86087134" [[package]] name = "wasmtime-cranelift" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57ec2d9a4b9990bea53a5dfd689d48663dbd19a46903eaf73e2022b3d1ef20d3" +checksum = "b2909406a6007e28be964067167890bca4574bd48a9ff18f1fa9f4856d89ea40" dependencies = [ "anyhow", "cfg-if", @@ -3332,32 +3359,31 @@ dependencies = [ "object 0.33.0", "target-lexicon", "thiserror", - "wasmparser 0.202.0", + "wasmparser 0.207.0", "wasmtime-environ", "wasmtime-versioned-export-macros", ] [[package]] name = "wasmtime-environ" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad72e2e3f7ea5b50fedf66dd36ba24634e4f445c370644683b433d45d88f6126" +checksum = "40e227f9ed2f5421473723d6c0352b5986e6e6044fde5410a274a394d726108f" dependencies = [ "anyhow", - "bincode", "cpp_demangle", "cranelift-entity", "gimli", "indexmap 2.1.0", "log", "object 0.33.0", + "postcard", "rustc-demangle", "serde", "serde_derive", "target-lexicon", - "thiserror", - "wasm-encoder 0.202.0", - "wasmparser 0.202.0", + "wasm-encoder 0.207.0", + "wasmparser 0.207.0", "wasmprinter", "wasmtime-component-util", "wasmtime-types", @@ -3365,9 +3391,9 @@ dependencies = [ [[package]] name = "wasmtime-fiber" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dbdf3053e7e7ced0cd4ed76579995b62169a1a43696890584eae2de2e33bf54" +checksum = "42edb392586d07038c1638e854382db916b6ca7845a2e6a7f8dc49e08907acdd" dependencies = [ "anyhow", "cc", @@ -3380,9 +3406,9 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "983ca409f2cd66385ce49486c022da0128acb7910c055beb5230998b49c6084c" +checksum = "95b26ef7914af0c0e3ca811bdc32f5f66fbba0fd21e1f8563350e8a7951e3598" dependencies = [ "object 0.33.0", "once_cell", @@ -3392,69 +3418,40 @@ dependencies = [ [[package]] name = "wasmtime-jit-icache-coherence" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede45379f3b4d395d8947006de8043801806099a240a26db553919b68e96ab15" -dependencies = [ - "cfg-if", - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "wasmtime-runtime" -version = "20.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65019d29d175c567b84173f2adf3b7a3af6d5592f8fe510dccae55d2569ec0d2" +checksum = "afe088f9b56bb353adaf837bf7e10f1c2e1676719dd5be4cac8e37f2ba1ee5bc" dependencies = [ "anyhow", - "cc", "cfg-if", - "encoding_rs", - "indexmap 2.1.0", "libc", - "log", - "mach2", - "memfd", - "memoffset", - "paste", - "psm", - "rustix", - "sptr", - "wasm-encoder 0.202.0", - "wasmtime-asm-macros", - "wasmtime-environ", - "wasmtime-fiber", - "wasmtime-jit-debug", - "wasmtime-slab", - "wasmtime-versioned-export-macros", "windows-sys 0.52.0", ] [[package]] name = "wasmtime-slab" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6585868f5c427c3e9d2a8c0c3354e6d7d4518a0d17723ab25a0c1eebf5d5b4" +checksum = "4ff75cafffe47b04b036385ce3710f209153525b0ed19d57b0cf44a22d446460" [[package]] name = "wasmtime-types" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84d5381ff174faded38c7b2085fbe430dff59489c87a91403354d710075750fb" +checksum = "2f2fa462bfea3220711c84e2b549f147e4df89eeb49b8a2a3d89148f6cc4a8b1" dependencies = [ "cranelift-entity", "serde", "serde_derive", - "thiserror", - "wasmparser 0.202.0", + "smallvec", + "wasmparser 0.207.0", ] [[package]] name = "wasmtime-versioned-export-macros" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d3b70422fdfa915c903f003b8b42554a8ae1aa0c6208429d8314ebf5721f3ac" +checksum = "d4cedc5bfef3db2a85522ee38564b47ef3b7fc7c92e94cacbce99808e63cdd47" dependencies = [ "proc-macro2", "quote", @@ -3463,9 +3460,9 @@ dependencies = [ [[package]] name = "wasmtime-wasi" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08dd00241969c3be8c5dfdedbb8d9c5af6783e514ffbf8f7522036561bd1337a" +checksum = "bdbbe94245904d4c96c7c5f7b55bad896cc27908644efd9442063c0748b631fc" dependencies = [ "anyhow", "async-trait", @@ -3494,16 +3491,16 @@ dependencies = [ [[package]] name = "wasmtime-winch" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "996360967b5196dec20ddcfce499ce4dc80cc925c088b0f2b376d29b96833a6a" +checksum = "97b27054fed6be4f3800aba5766f7ef435d4220ce290788f021a08d4fa573108" dependencies = [ "anyhow", "cranelift-codegen", "gimli", "object 0.33.0", "target-lexicon", - "wasmparser 0.202.0", + "wasmparser 0.207.0", "wasmtime-cranelift", "wasmtime-environ", "winch-codegen", @@ -3511,14 +3508,14 @@ dependencies = [ [[package]] name = "wasmtime-wit-bindgen" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01840c0cfbbb01664c796e3f4edbd656e58f9d76db083c7e7c6bba59ea657a96" +checksum = "c936a52ce69c28de2aa3b5fb4f2dbbb2966df304f04cccb7aca4ba56d915fda0" dependencies = [ "anyhow", "heck 0.4.1", "indexmap 2.1.0", - "wit-parser 0.202.0", + "wit-parser 0.207.0", ] [[package]] @@ -3532,24 +3529,24 @@ dependencies = [ [[package]] name = "wast" -version = "205.0.0" +version = "209.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "441a6a195b3b5245e26d450bbcc91366c6b652382a22f63cbe3c73240e13b2bb" +checksum = "8fffef2ff6147e4d12e972765fd75332c6a11c722571d4ab7a780d81ffc8f0a4" dependencies = [ "bumpalo", "leb128", "memchr", "unicode-width", - "wasm-encoder 0.205.0", + "wasm-encoder 0.209.1", ] [[package]] name = "wat" -version = "1.205.0" +version = "1.209.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19832624d606e7c6bf3cd4caa73578ecec5eac30c768269256d19c79900beb18" +checksum = "42203ec0271d113f8eb1f77ebc624886530cecb35915a7f63a497131f16e4d24" dependencies = [ - "wast 205.0.0", + "wast 209.0.1", ] [[package]] @@ -3587,9 +3584,9 @@ dependencies = [ [[package]] name = "wiggle" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93fc3510978a905f931d74784ed8685bd6453e18ad8f92809e793d48827e3cd" +checksum = "a89ea6f74ece6d1cfbd089783006b8eb69a0219ca83cad22068f0d9fa9df3f91" dependencies = [ "anyhow", "async-trait", @@ -3602,9 +3599,9 @@ dependencies = [ [[package]] name = "wiggle-generate" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec3909e70f36066526ad3b2abb4855ab836f8a6b293449582563ac50d651083" +checksum = "36beda94813296ecaf0d91b7ada9da073fd41865ba339bdd3b7764e2e785b8e9" dependencies = [ "anyhow", "heck 0.4.1", @@ -3617,9 +3614,9 @@ dependencies = [ [[package]] name = "wiggle-macro" -version = "20.0.2" +version = "21.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c31124572ab16401c491c0d4fb5fe5d17dab65fcfcc56d7d8efb1c1e56a3db" +checksum = "0b47d2b4442ce93106dba5d1a9c59d5f85b5732878bb3d0598d3c93c0d01b16b" dependencies = [ "proc-macro2", "quote", @@ -3651,9 +3648,9 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "winch-codegen" -version = "0.18.2" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cefeb84a0f39227cf2eb665cf348e6150ebf3372d08adff03264064ab590fdf4" +checksum = "1dc69899ccb2da7daa4df31426dcfd284b104d1a85e1dae35806df0c46187f87" dependencies = [ "anyhow", "cranelift-codegen", @@ -3661,7 +3658,7 @@ dependencies = [ "regalloc2", "smallvec", "target-lexicon", - "wasmparser 0.202.0", + "wasmparser 0.207.0", "wasmtime-cranelift", "wasmtime-environ", ] @@ -3905,9 +3902,9 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.202.0" +version = "0.207.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "744237b488352f4f27bca05a10acb79474415951c450e52ebd0da784c1df2bcc" +checksum = "78c83dab33a9618d86cfe3563cc864deffd08c17efc5db31a3b7cd1edeffe6e1" dependencies = [ "anyhow", "id-arena", @@ -3918,7 +3915,7 @@ dependencies = [ "serde_derive", "serde_json", "unicode-xid", - "wasmparser 0.202.0", + "wasmparser 0.207.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index b363f56e6..3ab03eb71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,8 +56,8 @@ rmpv = "1.3.0" serde = { version = "1.0.200", features = ["derive"] } tonic = { version = "0.11.0", default-features = false } serde_json = "1.0.116" -wasmtime = "20.0.1" -wasmtime-wasi = "20.0.1" +wasmtime = "21.0.0" +wasmtime-wasi = "21.0.0" tonic-build = "0.11.0" async-trait = "0.1.80" tonic-web = "0.11.0" diff --git a/pulumi_wasm/tests/test.rs b/pulumi_wasm/tests/test.rs index 9c613c23a..e8d35b1e0 100644 --- a/pulumi_wasm/tests/test.rs +++ b/pulumi_wasm/tests/test.rs @@ -46,24 +46,23 @@ struct MyState { } impl server::component::pulumi_wasm::external_world::Host for MyState { - fn is_in_preview(&mut self) -> Result { - Ok(self.is_in_preview) + fn is_in_preview(&mut self) -> bool { + self.is_in_preview } - fn register_resource(&mut self, _request: Vec) -> Result> { + fn register_resource(&mut self, _request: Vec) -> Vec { todo!() } - fn get_root_resource(&mut self) -> Result { + fn get_root_resource(&mut self) -> String { todo!() } - fn register_resource_outputs(&mut self, _request: Vec) -> Result> { + fn register_resource_outputs(&mut self, _request: Vec) -> Vec { todo!() } } impl log::Host for MyState { - fn log(&mut self, s: log::Content) -> Result<()> { + fn log(&mut self, s: log::Content) { println!("{:?}", s); - Ok(()) } } diff --git a/pulumi_wasm_runner/src/pulumi.rs b/pulumi_wasm_runner/src/pulumi.rs index 0df1ca9e1..655db8032 100644 --- a/pulumi_wasm_runner/src/pulumi.rs +++ b/pulumi_wasm_runner/src/pulumi.rs @@ -23,7 +23,8 @@ pub(crate) mod server { wasmtime::component::bindgen!({ path: "../wits/world.wit", world: "main", - async: true + async: true, + trappable_imports: true, }); }