diff --git a/Cargo.lock b/Cargo.lock index c2cde4e..27a8921 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1401,9 +1401,6 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -dependencies = [ - "ahash", -] [[package]] name = "hashbrown" @@ -1549,7 +1546,7 @@ dependencies = [ [[package]] name = "hyperware_process_lib" -version = "1.2.1" +version = "2.0.0" dependencies = [ "alloy", "alloy-primitives", @@ -1835,10 +1832,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] -name = "leb128" -version = "0.2.5" +name = "leb128fmt" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" [[package]] name = "libc" @@ -2850,15 +2847,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "spdx" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bae30cc7bfe3656d60ee99bf6836f472b0c53dddcbf335e253329abb16e535a2" -dependencies = [ - "smallvec", -] - [[package]] name = "spki" version = "0.7.3" @@ -3437,39 +3425,34 @@ checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" [[package]] name = "wasm-encoder" -version = "0.220.0" +version = "0.230.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebf48234b389415b226a4daef6562933d38c7b28a8b8f64c5c4130dad1561ab7" +checksum = "d4349d0943718e6e434b51b9639e876293093dca4b96384fb136ab5bd5ce6660" dependencies = [ - "leb128", + "leb128fmt", "wasmparser", ] [[package]] name = "wasm-metadata" -version = "0.220.0" +version = "0.230.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f3e5f5920c5abfc45573c89b07b38efdaae1515ef86f83dad12d60e50ecd62b" +checksum = "1a52e010df5494f4289ccc68ce0c2a8c17555225a5e55cc41b98f5ea28d0844b" dependencies = [ "anyhow", "indexmap", - "serde", - "serde_derive", - "serde_json", - "spdx", "wasm-encoder", "wasmparser", ] [[package]] name = "wasmparser" -version = "0.220.0" +version = "0.230.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e246c2772ce3ebc83f89a2d4487ac5794cad6c309b2071818a88c7db7c36d87b" +checksum = "808198a69b5a0535583370a51d459baa14261dfab04800c4864ee9e1a14346ed" dependencies = [ - "ahash", "bitflags", - "hashbrown 0.14.5", + "hashbrown 0.15.2", "indexmap", "semver 1.0.24", ] @@ -3643,9 +3626,9 @@ dependencies = [ [[package]] name = "wit-bindgen" -version = "0.36.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a2b3e15cd6068f233926e7d8c7c588b2ec4fb7cc7bf3824115e7c7e2a8485a3" +checksum = "fa5b79cd8cb4b27a9be3619090c03cbb87fe7b1c6de254b4c9b4477188828af8" dependencies = [ "wit-bindgen-rt", "wit-bindgen-rust-macro", @@ -3653,9 +3636,9 @@ dependencies = [ [[package]] name = "wit-bindgen-core" -version = "0.36.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b632a5a0fa2409489bd49c9e6d99fcc61bb3d4ce9d1907d44662e75a28c71172" +checksum = "e35e550f614e16db196e051d22b0d4c94dd6f52c90cb1016240f71b9db332631" dependencies = [ "anyhow", "heck", @@ -3664,18 +3647,20 @@ dependencies = [ [[package]] name = "wit-bindgen-rt" -version = "0.36.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7947d0131c7c9da3f01dfde0ab8bd4c4cf3c5bd49b6dba0ae640f1fa752572ea" +checksum = "051105bab12bc78e161f8dfb3596e772dd6a01ebf9c4840988e00347e744966a" dependencies = [ "bitflags", + "futures", + "once_cell", ] [[package]] name = "wit-bindgen-rust" -version = "0.36.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4329de4186ee30e2ef30a0533f9b3c123c019a237a7c82d692807bf1b3ee2697" +checksum = "cb1e0a91fc85f4ef70e0b81cd86c2b49539d3cd14766fd82396184aadf8cb7d7" dependencies = [ "anyhow", "heck", @@ -3689,9 +3674,9 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-macro" -version = "0.36.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "177fb7ee1484d113b4792cc480b1ba57664bbc951b42a4beebe573502135b1fc" +checksum = "ce69f52c5737705881d5da5a1dd06f47f8098d094a8d65a3e44292942edb571f" dependencies = [ "anyhow", "prettyplease", @@ -3704,9 +3689,9 @@ dependencies = [ [[package]] name = "wit-component" -version = "0.220.0" +version = "0.230.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ccedf54cc65f287da268d64d2bf4f7530d2cfb2296ffbe3ad5f65567e4cf53" +checksum = "b607b15ead6d0e87f5d1613b4f18c04d4e80ceeada5ffa608d8360e6909881df" dependencies = [ "anyhow", "bitflags", @@ -3723,9 +3708,9 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.220.0" +version = "0.230.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b7117ce3adc0b4354b46dc1cf3190b00b333e65243d244c613ffcc58bdec84d" +checksum = "679fde5556495f98079a8e6b9ef8c887f731addaffa3d48194075c1dd5cd611b" dependencies = [ "anyhow", "id-arena", diff --git a/Cargo.toml b/Cargo.toml index b05a2e1..32327bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "hyperware_process_lib" authors = ["Sybil Technologies AG"] -version = "1.2.1" +version = "2.0.0" edition = "2021" description = "A library for writing Hyperware processes in Rust." homepage = "https://hyperware.ai" @@ -37,4 +37,4 @@ tracing = { version = "0.1", optional = true } tracing-error = { version = "0.2", optional = true } tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "std"], optional = true } url = "2.4.1" -wit-bindgen = "0.36.0" +wit-bindgen = "0.42.1" diff --git a/README.md b/README.md index 5786bab..3486eac 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,10 @@ See the [Hyperware Book](https://book.hyperware.ai) for a guide on how to use th ## Dependencies -`process_lib` v`1.x.y` uses [`wit-bindgen`](https://github.com/bytecodealliance/wit-bindgen) v`0.36.0`. +`process_lib` v`2.x.y` uses [`wit-bindgen`](https://github.com/bytecodealliance/wit-bindgen) v`0.42.1`. Processes depending on `process_lib` must also use that version. `process_lib` version | `wit-bindgen` version --------------------- | --------------------- +`2.x.y` | `0.42.1` `1.x.y` | `0.36.0` diff --git a/src/lib.rs b/src/lib.rs index 0333649..4134715 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,11 +13,12 @@ //! for applications that want to maximize composability and introspectability. //! For blobs, we recommend bincode to serialize and deserialize to bytes. //! -//! `process_lib` v`1.x.y` uses [`wit-bindgen`](https://github.com/bytecodealliance/wit-bindgen) v`0.36.0`. +//! `process_lib` v`2.x.y` uses [`wit-bindgen`](https://github.com/bytecodealliance/wit-bindgen) v`0.42.1`. //! Processes depending on `process_lib` must also use that version. //! //! `process_lib` version | `wit-bindgen` version //! --------------------- | --------------------- +//! `2.x.y` | `0.42.1` //! `1.x.y` | `0.36.0` //! pub use crate::hyperware::process::standard::*; diff --git a/src/types/request.rs b/src/types/request.rs index f8435eb..04838ab 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -280,7 +280,7 @@ impl Request { metadata: self.metadata, capabilities: self.capabilities, }, - self.context.as_ref(), + self.context.as_ref().map(|v| &**v), self.blob.as_ref(), ); Ok(())