wit-bindgen-rust
Advanced tools
| { | ||
| "git": { | ||
| "sha1": "3dfc82a753ac7e514802a618ddedb24dd51048fe" | ||
| "sha1": "51080a08cafd3e056abf17f75bf9b7a01a98a8a7" | ||
| }, | ||
| "path_in_vcs": "crates/rust" | ||
| } |
+22
-27
@@ -127,5 +127,5 @@ # This file is automatically @generated by Cargo. | ||
| name = "foldhash" | ||
| version = "0.1.5" | ||
| version = "0.2.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" | ||
| checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" | ||
@@ -223,5 +223,5 @@ [[package]] | ||
| name = "hashbrown" | ||
| version = "0.15.5" | ||
| version = "0.16.1" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" | ||
| checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" | ||
| dependencies = [ | ||
@@ -232,8 +232,2 @@ "foldhash", | ||
| [[package]] | ||
| name = "hashbrown" | ||
| version = "0.16.1" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" | ||
| [[package]] | ||
| name = "heck" | ||
@@ -246,5 +240,5 @@ version = "0.5.0" | ||
| name = "id-arena" | ||
| version = "2.2.1" | ||
| version = "2.3.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" | ||
| checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" | ||
@@ -258,3 +252,3 @@ [[package]] | ||
| "equivalent", | ||
| "hashbrown 0.16.1", | ||
| "hashbrown", | ||
| "serde", | ||
@@ -432,5 +426,5 @@ "serde_core", | ||
| name = "wasm-encoder" | ||
| version = "0.244.0" | ||
| version = "0.245.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" | ||
| checksum = "95d568e113f706ee7a7df9b33547bb80721f55abffc79b3dc4d09c368690e662" | ||
| dependencies = [ | ||
@@ -443,5 +437,5 @@ "leb128fmt", | ||
| name = "wasm-metadata" | ||
| version = "0.244.0" | ||
| version = "0.245.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" | ||
| checksum = "ce52b194ec202d029751081d735c1ae49c1bacbdc2634c821a86211e3751300c" | ||
| dependencies = [ | ||
@@ -456,8 +450,8 @@ "anyhow", | ||
| name = "wasmparser" | ||
| version = "0.244.0" | ||
| version = "0.245.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" | ||
| checksum = "48a767a48974f0c8b66f211b96e01aa77feed58b8ccce4e7f0cff0ae55b174d4" | ||
| dependencies = [ | ||
| "bitflags", | ||
| "hashbrown 0.15.5", | ||
| "hashbrown", | ||
| "indexmap", | ||
@@ -484,5 +478,5 @@ "semver", | ||
| name = "wit-bindgen-core" | ||
| version = "0.52.0" | ||
| version = "0.53.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "c15e7a56641cc9040480a26526a3229cbc4e8065adf98c9755d21c4c9b446c4c" | ||
| checksum = "f7a381fbf6d0b3403a207adf15c84811e039d2c4a30d4bcc329be5b8953cdad3" | ||
| dependencies = [ | ||
@@ -498,3 +492,3 @@ "anyhow", | ||
| name = "wit-bindgen-rust" | ||
| version = "0.52.0" | ||
| version = "0.53.0" | ||
| dependencies = [ | ||
@@ -518,5 +512,5 @@ "anyhow", | ||
| name = "wit-component" | ||
| version = "0.244.0" | ||
| version = "0.245.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" | ||
| checksum = "896efcb3d68ea1cb555d2d1df185b4071b39d91cf850456809bb0c90a0e4e66e" | ||
| dependencies = [ | ||
@@ -538,7 +532,8 @@ "anyhow", | ||
| name = "wit-parser" | ||
| version = "0.244.0" | ||
| version = "0.245.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" | ||
| checksum = "b5cda4f69fdc5a8d54f7032262217dd89410a933e3f86fdad854f5833caf3ccb" | ||
| dependencies = [ | ||
| "anyhow", | ||
| "hashbrown", | ||
| "id-arena", | ||
@@ -545,0 +540,0 @@ "indexmap", |
+4
-4
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "wit-bindgen-rust" | ||
| version = "0.52.0" | ||
| version = "0.53.0" | ||
| authors = ["Alex Crichton <alex@alexcrichton.com>"] | ||
@@ -82,10 +82,10 @@ build = "build.rs" | ||
| [dependencies.wasm-metadata] | ||
| version = "0.244.0" | ||
| version = "0.245.0" | ||
| default-features = false | ||
| [dependencies.wit-bindgen-core] | ||
| version = "0.52.0" | ||
| version = "0.53.0" | ||
| [dependencies.wit-component] | ||
| version = "0.244.0" | ||
| version = "0.245.0" | ||
@@ -92,0 +92,0 @@ [dev-dependencies.bytes] |
+13
-31
| use crate::{ | ||
| ConstructorReturnType, Identifier, InterfaceGenerator, RustFlagsRepr, | ||
| classify_constructor_return_type, int_repr, to_rust_ident, | ||
| ConstructorReturnType, InterfaceGenerator, RustFlagsRepr, classify_constructor_return_type, | ||
| int_repr, to_rust_ident, | ||
| }; | ||
@@ -430,19 +430,10 @@ use heck::*; | ||
| let op = &operands[0]; | ||
| let name = payload | ||
| .as_ref() | ||
| .map(|ty| { | ||
| self.r#gen | ||
| .type_name_owned_with_id(ty, Identifier::StreamOrFuturePayload) | ||
| }) | ||
| .unwrap_or_else(|| "()".into()); | ||
| let ordinal = self | ||
| .r#gen | ||
| .r#gen | ||
| .future_payloads | ||
| .get_index_of(&name) | ||
| .unwrap(); | ||
| let name = match payload { | ||
| Some(ty) => self.r#gen.type_name_owned(ty), | ||
| None => "()".to_string(), | ||
| }; | ||
| let path = self.r#gen.path_to_root(); | ||
| results.push(format!( | ||
| "{async_support}::FutureReader::new\ | ||
| ({op} as u32, &{path}wit_future::vtable{ordinal}::VTABLE)" | ||
| ({op} as u32, &<{name} as {path}wit_future::FuturePayload>::VTABLE)" | ||
| )) | ||
@@ -459,19 +450,10 @@ } | ||
| let op = &operands[0]; | ||
| let name = payload | ||
| .as_ref() | ||
| .map(|ty| { | ||
| self.r#gen | ||
| .type_name_owned_with_id(ty, Identifier::StreamOrFuturePayload) | ||
| }) | ||
| .unwrap_or_else(|| "()".into()); | ||
| let ordinal = self | ||
| .r#gen | ||
| .r#gen | ||
| .stream_payloads | ||
| .get_index_of(&name) | ||
| .unwrap(); | ||
| let name = match payload { | ||
| Some(ty) => self.r#gen.type_name_owned(ty), | ||
| None => "()".to_string(), | ||
| }; | ||
| let path = self.r#gen.path_to_root(); | ||
| results.push(format!( | ||
| "{async_support}::StreamReader::new\ | ||
| ({op} as u32, &{path}wit_stream::vtable{ordinal}::VTABLE)" | ||
| ({op} as u32, &<{name} as {path}wit_stream::StreamPayload>::VTABLE)" | ||
| )) | ||
@@ -1274,3 +1256,3 @@ } | ||
| let base = {base}.add({index_var} * {elemsize}); | ||
| {body} | ||
| {body} | ||
| }});" | ||
@@ -1277,0 +1259,0 @@ )); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display