wit-component
Advanced tools
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| { | ||
| "git": { | ||
| "sha1": "a1712da0354bea5a38275d7ddf30f707b5757a68" | ||
| "sha1": "8ebed07de87638d991e144fa5b79b904b1758987" | ||
| }, | ||
| "path_in_vcs": "crates/wit-component" | ||
| } |
+25
-25
@@ -1198,8 +1198,8 @@ # This file is automatically @generated by Cargo. | ||
| name = "wasm-encoder" | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "e01164c9dda68301e34fdae536c23ed6fe90ce6d97213ccc171eebbd3d02d6b8" | ||
| checksum = "67f90e55bc9c6ee6954a757cc6eb3424d96b442e5252ed10fea627e518878d36" | ||
| dependencies = [ | ||
| "leb128fmt", | ||
| "wasmparser 0.241.2", | ||
| "wasmparser 0.242.0", | ||
| ] | ||
@@ -1209,5 +1209,5 @@ | ||
| name = "wasm-metadata" | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "876fe286f2fa416386deedebe8407e6f19e0b5aeaef3d03161e77a15fa80f167" | ||
| checksum = "53cc3deb1bc19b28fa43bd5773ad712ab0ddabea785b78166d6791b14e955fe1" | ||
| dependencies = [ | ||
@@ -1223,4 +1223,4 @@ "anyhow", | ||
| "url", | ||
| "wasm-encoder 0.241.2", | ||
| "wasmparser 0.241.2", | ||
| "wasm-encoder 0.242.0", | ||
| "wasmparser 0.242.0", | ||
| ] | ||
@@ -1243,5 +1243,5 @@ | ||
| name = "wasmparser" | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "46d90019b1afd4b808c263e428de644f3003691f243387d30d673211ee0cb8e8" | ||
| checksum = "ed3c6e611f4cd748d85c767815823b777dc56afca793fcda27beae4e85028849" | ||
| dependencies = [ | ||
@@ -1267,9 +1267,9 @@ "bitflags", | ||
| name = "wasmprinter" | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "68832d23d180e4b8774103c2992b48a1b4d1b62474fd5807efa2e38c7914c4e2" | ||
| checksum = "936a79bf33649f3aa0cd7cdf495e62ac0c718b3630ab53946df6dc2eff73a0d6" | ||
| dependencies = [ | ||
| "anyhow", | ||
| "termcolor", | ||
| "wasmparser 0.241.2", | ||
| "wasmparser 0.242.0", | ||
| ] | ||
@@ -1489,5 +1489,5 @@ | ||
| name = "wast" | ||
| version = "241.0.2" | ||
| version = "242.0.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "63f66e07e2ddf531fef6344dbf94d112df7c2f23ed6ffb10962e711500b8d816" | ||
| checksum = "50a61ae2997784a4ae2a47b3a99f7cf0ad2a54db09624a28a0c2e9d7a24408ce" | ||
| dependencies = [ | ||
@@ -1498,3 +1498,3 @@ "bumpalo", | ||
| "unicode-width", | ||
| "wasm-encoder 0.241.2", | ||
| "wasm-encoder 0.242.0", | ||
| ] | ||
@@ -1504,5 +1504,5 @@ | ||
| name = "wat" | ||
| version = "1.241.2" | ||
| version = "1.242.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "45f923705c40830af909c5dec2352ec2821202e4a66008194585e1917458a26d" | ||
| checksum = "5ae8cf6adfb79b5d89cb3fe68bd56aaab9409d9cf23b588097eae7d75585dae2" | ||
| dependencies = [ | ||
@@ -1689,3 +1689,3 @@ "wast", | ||
| name = "wit-component" | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| dependencies = [ | ||
@@ -1703,10 +1703,10 @@ "anyhow", | ||
| "serde_json", | ||
| "wasm-encoder 0.241.2", | ||
| "wasm-encoder 0.242.0", | ||
| "wasm-metadata", | ||
| "wasmparser 0.241.2", | ||
| "wasmprinter 0.241.2", | ||
| "wasmparser 0.242.0", | ||
| "wasmprinter 0.242.0", | ||
| "wasmtime", | ||
| "wast", | ||
| "wat", | ||
| "wit-parser 0.241.2", | ||
| "wit-parser 0.242.0", | ||
| ] | ||
@@ -1734,5 +1734,5 @@ | ||
| name = "wit-parser" | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "09ef1c6ad67f35c831abd4039c02894de97034100899614d1c44e2268ad01c91" | ||
| checksum = "3b451c00aeb62cdc67fb52674e3920d84169e212c2dc625231beb59470a0edbd" | ||
| dependencies = [ | ||
@@ -1748,3 +1748,3 @@ "anyhow", | ||
| "unicode-xid", | ||
| "wasmparser 0.241.2", | ||
| "wasmparser 0.242.0", | ||
| ] | ||
@@ -1751,0 +1751,0 @@ |
+11
-11
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "wit-component" | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| authors = ["Peter Huene <peter@huene.dev>"] | ||
@@ -100,3 +100,3 @@ build = false | ||
| [dependencies.wasm-encoder] | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| features = [ | ||
@@ -109,7 +109,7 @@ "std", | ||
| [dependencies.wasm-metadata] | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| default-features = false | ||
| [dependencies.wasmparser] | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| features = [ | ||
@@ -124,3 +124,3 @@ "simd", | ||
| [dependencies.wast] | ||
| version = "241.0.2" | ||
| version = "242.0.0" | ||
| optional = true | ||
@@ -130,3 +130,3 @@ default-features = false | ||
| [dependencies.wat] | ||
| version = "1.241.2" | ||
| version = "1.242.0" | ||
| optional = true | ||
@@ -136,3 +136,3 @@ default-features = false | ||
| [dependencies.wit-parser] | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| features = [ | ||
@@ -156,3 +156,3 @@ "decoding", | ||
| [dev-dependencies.wasm-metadata] | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| features = ["oci"] | ||
@@ -162,3 +162,3 @@ default-features = false | ||
| [dev-dependencies.wasmparser] | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| features = [ | ||
@@ -173,3 +173,3 @@ "simd", | ||
| [dev-dependencies.wasmprinter] | ||
| version = "0.241.2" | ||
| version = "0.242.0" | ||
| features = ["component-model"] | ||
@@ -179,3 +179,3 @@ default-features = false | ||
| [dev-dependencies.wat] | ||
| version = "1.241.2" | ||
| version = "1.242.0" | ||
| features = ["component-model"] | ||
@@ -182,0 +182,0 @@ default-features = false |
@@ -23,2 +23,4 @@ use super::EncodingState; | ||
| pub func_type_map: HashMap<FunctionKey<'a>, u32>, | ||
| pub unit_future: Option<u32>, | ||
| pub unit_stream: Option<u32>, | ||
| } | ||
@@ -376,2 +378,22 @@ | ||
| } | ||
| fn encode_unit_future(&mut self) -> u32 { | ||
| if let Some(index) = self.type_encoding_maps().unit_future { | ||
| return index; | ||
| } | ||
| let (index, encoder) = self.defined_type(); | ||
| encoder.future(None); | ||
| self.type_encoding_maps().unit_future = Some(index); | ||
| index | ||
| } | ||
| fn encode_unit_stream(&mut self) -> u32 { | ||
| if let Some(index) = self.type_encoding_maps().unit_stream { | ||
| return index; | ||
| } | ||
| let (index, encoder) = self.defined_type(); | ||
| encoder.stream(None); | ||
| self.type_encoding_maps().unit_stream = Some(index); | ||
| index | ||
| } | ||
| } | ||
@@ -378,0 +400,0 @@ |
| use super::{Adapter, ComponentEncoder, LibraryInfo, RequiredOptions}; | ||
| use crate::validation::{ | ||
| Import, ImportMap, ValidatedModule, validate_adapter_module, validate_module, | ||
| Import, ImportMap, PayloadType, ValidatedModule, validate_adapter_module, validate_module, | ||
| }; | ||
@@ -399,3 +399,5 @@ use anyhow::{Context, Result}; | ||
| | Import::FutureDropWritable(info) => { | ||
| live.add_type_id(resolve, info.ty); | ||
| if let PayloadType::Type { id, .. } = info.ty { | ||
| live.add_type_id(resolve, id); | ||
| } | ||
| } | ||
@@ -402,0 +404,0 @@ |
+1
-1
@@ -457,3 +457,3 @@ use self::bitvec::BitVec; | ||
| HeapType::Abstract { .. } => {} | ||
| HeapType::Concrete(i) => self.ty(i.as_module_index().unwrap()), | ||
| HeapType::Concrete(i) | HeapType::Exact(i) => self.ty(i.as_module_index().unwrap()), | ||
| } | ||
@@ -460,0 +460,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet