diff --git a/Cargo.lock b/Cargo.lock index 2682b483..0482ff94 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -373,6 +373,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" @@ -541,6 +547,16 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "cranelift-entity" +version = "0.109.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8cfdc315e5d18997093e040a8d234bea1ac1e118a716d3e30f40d449e78207b" +dependencies = [ + "serde", + "serde_derive", +] + [[package]] name = "cranelift-frontend" version = "0.106.2" @@ -695,7 +711,7 @@ dependencies = [ "cap-primitives", "rand_core", "rand_pcg", - "wasi-common", + "wasi-common 19.0.2", ] [[package]] @@ -767,6 +783,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" @@ -871,7 +893,7 @@ dependencies = [ "rust-embed", "serde", "serde_json", - "wasi-common", + "wasi-common 22.0.0", "wasmprof", "wasmtime 19.0.2", "wasmtime-wasi", @@ -1032,6 +1054,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" dependencies = [ "ahash", + "serde", ] [[package]] @@ -1222,6 +1245,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.1.3" @@ -1395,6 +1424,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "576dfe1fc8f9df304abb159d767a29d0476f7750fbf8aa7ad07816004a207434" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" version = "1.19.0" @@ -1431,6 +1469,17 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" +[[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 = "ppv-lite86" version = "0.2.17" @@ -1781,6 +1830,9 @@ name = "smallvec" version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +dependencies = [ + "serde", +] [[package]] name = "socket2" @@ -2082,9 +2134,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasi-common" -version = "19.0.0" +version = "19.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1df07660d36c7e6bceccb546b58d0901319db633549ae56124cbc5c7285d1ee0" +checksum = "ce39d43366511a954708a80e9e2e1245bf2fed4e37385cc49f8686d7a9c094dc" dependencies = [ "anyhow", "bitflags 2.5.0", @@ -2102,7 +2154,33 @@ dependencies = [ "thiserror", "tracing", "wasmtime 19.0.2", - "wiggle 19.0.0", + "wiggle 19.0.2", + "windows-sys 0.52.0", +] + +[[package]] +name = "wasi-common" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b86fd41e1e26ff6af9451c6a332a5ce5f5283ca51e87d875cdd9a05305598ee3" +dependencies = [ + "anyhow", + "bitflags 2.5.0", + "cap-fs-ext", + "cap-rand", + "cap-std", + "cap-time-ext", + "fs-set-times", + "io-extras", + "io-lifetimes", + "log", + "once_cell", + "rustix", + "system-interface", + "thiserror", + "tracing", + "wasmtime 22.0.0", + "wiggle 22.0.0", "windows-sys 0.52.0", ] @@ -2200,6 +2278,20 @@ dependencies = [ "semver", ] +[[package]] +name = "wasmparser" +version = "0.209.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07035cc9a9b41e62d3bb3a3815a66ab87c993c06fe1cf6b2a3f2a18499d937db" +dependencies = [ + "ahash", + "bitflags 2.5.0", + "hashbrown 0.14.3", + "indexmap", + "semver", + "serde", +] + [[package]] name = "wasmprinter" version = "0.201.0" @@ -2318,6 +2410,44 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "wasmtime" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "786d8b5e7a4d54917c5ebe555b9667337e5f93383f49bddaaeec2eba68093b45" +dependencies = [ + "anyhow", + "bumpalo", + "cc", + "cfg-if", + "hashbrown 0.14.3", + "indexmap", + "libc", + "libm", + "log", + "mach2", + "memfd", + "memoffset", + "object 0.36.0", + "once_cell", + "paste", + "postcard", + "psm", + "rustix", + "serde", + "serde_derive", + "smallvec", + "sptr", + "target-lexicon", + "wasmparser 0.209.1", + "wasmtime-asm-macros 22.0.0", + "wasmtime-environ 22.0.0", + "wasmtime-jit-icache-coherence 22.0.0", + "wasmtime-slab 22.0.0", + "wasmtime-versioned-export-macros 22.0.0", + "windows-sys 0.52.0", +] + [[package]] name = "wasmtime-asm-macros" version = "19.0.2" @@ -2336,6 +2466,15 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "wasmtime-asm-macros" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d697d99c341d4a9ffb72f3af7a02124d233eeb59aee010f36d88e97cca553d5e" +dependencies = [ + "cfg-if", +] + [[package]] name = "wasmtime-cache" version = "19.0.2" @@ -2513,6 +2652,26 @@ dependencies = [ "wasmtime-types 20.0.2", ] +[[package]] +name = "wasmtime-environ" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f444e900e848b884d8a8a2949b6f5b92af642a3e663ff8fbe78731143a55be61" +dependencies = [ + "anyhow", + "cranelift-entity 0.109.0", + "gimli", + "indexmap", + "log", + "object 0.36.0", + "postcard", + "serde", + "serde_derive", + "target-lexicon", + "wasmparser 0.209.1", + "wasmtime-types 22.0.0", +] + [[package]] name = "wasmtime-fiber" version = "19.0.2" @@ -2577,6 +2736,18 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "wasmtime-jit-icache-coherence" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5afe2f0499542f9a4bcfa1b55bfdda803b6ade4e7c93c6b99e0f39dba44b0a91" +dependencies = [ + "anyhow", + "cfg-if", + "libc", + "windows-sys 0.52.0", +] + [[package]] name = "wasmtime-runtime" version = "19.0.2" @@ -2647,6 +2818,12 @@ version = "20.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca6585868f5c427c3e9d2a8c0c3354e6d7d4518a0d17723ab25a0c1eebf5d5b4" +[[package]] +name = "wasmtime-slab" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a7de1f2bec5bbb35d532e61c85c049dc84ae671df60492f90b954ecf21169e7" + [[package]] name = "wasmtime-types" version = "19.0.2" @@ -2673,6 +2850,19 @@ dependencies = [ "wasmparser 0.202.0", ] +[[package]] +name = "wasmtime-types" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "412463e9000e14cf6856be48628d2213c20c153e29ffc22b036980c892ea6964" +dependencies = [ + "cranelift-entity 0.109.0", + "serde", + "serde_derive", + "smallvec", + "wasmparser 0.209.1", +] + [[package]] name = "wasmtime-versioned-export-macros" version = "19.0.2" @@ -2695,6 +2885,17 @@ dependencies = [ "syn", ] +[[package]] +name = "wasmtime-versioned-export-macros" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de5a9bc4f44ceeb168e9e8e3be4e0b4beb9095b468479663a9e24c667e36826f" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "wasmtime-wasi" version = "20.0.2" @@ -2823,9 +3024,9 @@ dependencies = [ [[package]] name = "wiggle" -version = "19.0.0" +version = "19.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1136a209614ace00b0c11f04dc7cf42540773be3b22eff6ad165110aba29c1" +checksum = "899d3fe5fbacd02f114cacdaa1cca9040280c4153c71833a77b9609c60ccf72b" dependencies = [ "anyhow", "async-trait", @@ -2833,7 +3034,7 @@ dependencies = [ "thiserror", "tracing", "wasmtime 19.0.2", - "wiggle-macro 19.0.0", + "wiggle-macro 19.0.2", ] [[package]] @@ -2851,11 +3052,26 @@ dependencies = [ "wiggle-macro 20.0.2", ] +[[package]] +name = "wiggle" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29830e5d01c182d24b94092c697aa7ab0ee97d22e78a2bf40ca91eae6ebca5c2" +dependencies = [ + "anyhow", + "async-trait", + "bitflags 2.5.0", + "thiserror", + "tracing", + "wasmtime 22.0.0", + "wiggle-macro 22.0.0", +] + [[package]] name = "wiggle-generate" -version = "19.0.0" +version = "19.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c2bd99ce26046f4246d720a4198f6a8fc95bc5da82ae4ef62263e24641c3076" +checksum = "2df5887f452cff44ffe1e1aba69b7fafe812deed38498446fa7a46b55e962cd5" dependencies = [ "anyhow", "heck 0.4.1", @@ -2881,16 +3097,31 @@ dependencies = [ "witx", ] +[[package]] +name = "wiggle-generate" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "557567f2793508760cd855f7659b7a0b9dc4dbc451f53f1415d6943a15311ade" +dependencies = [ + "anyhow", + "heck 0.4.1", + "proc-macro2", + "quote", + "shellexpand", + "syn", + "witx", +] + [[package]] name = "wiggle-macro" -version = "19.0.0" +version = "19.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512d816dbcd0113103b2eb2402ec9018e7f0755202a5b3e67db726f229d8dcae" +checksum = "acdb12de36507498abaa3a042f895a43ee00a2f6125b6901b9a27edf72bfdbe7" dependencies = [ "proc-macro2", "quote", "syn", - "wiggle-generate 19.0.0", + "wiggle-generate 19.0.2", ] [[package]] @@ -2905,6 +3136,18 @@ dependencies = [ "wiggle-generate 20.0.2", ] +[[package]] +name = "wiggle-macro" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc26129a8aea20b62c961d1b9ab4a3c3b56b10042ed85d004f8678af0f21ba6e" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "wiggle-generate 22.0.0", +] + [[package]] name = "winapi" version = "0.3.9" diff --git a/Cargo.toml b/Cargo.toml index c9dfda6a..1fb70fa2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ opt-level = 3 [dependencies] wasmtime = "=19.0.2" wasmtime-wasi = "=20.0.2" -wasi-common = "=19.0.0" +wasi-common = "=22.0.0" deterministic-wasi-ctx = "=0.1.20" anyhow = "1.0" clap = { version = "4.5", features = ["derive"] }