From aacf1c5b3af4f1205d6d96da1d156d2bed94174b Mon Sep 17 00:00:00 2001 From: Charles Schleich Date: Wed, 15 Jan 2025 14:04:19 +0100 Subject: [PATCH] Add getrandom crate feature=js for KeyExpr --- Cargo.lock | 1 + Cargo.toml | 1 + commons/zenoh-keyexpr/Cargo.toml | 1 + 3 files changed, 3 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 69148b230b..db79de95ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5257,6 +5257,7 @@ version = "1.0.0-dev" dependencies = [ "ahash", "criterion", + "getrandom 0.2.15", "hashbrown", "keyed-set", "lazy_static", diff --git a/Cargo.toml b/Cargo.toml index f2b96a40be..3a236c82f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -102,6 +102,7 @@ form_urlencoded = "1.2.1" futures = "0.3.30" futures-util = { version = "0.3.30", default-features = false } # Default features are disabled due to some crates' requirements git-version = "0.3.9" +getrandom = { version = "0.2" } hashbrown = "0.14" hex = { version = "0.4.3", default-features = false } # Default features are disabled due to usage in no_std crates hmac = { version = "0.12.1", features = ["std"] } diff --git a/commons/zenoh-keyexpr/Cargo.toml b/commons/zenoh-keyexpr/Cargo.toml index 2f90386e4a..43c2a9a059 100644 --- a/commons/zenoh-keyexpr/Cargo.toml +++ b/commons/zenoh-keyexpr/Cargo.toml @@ -36,6 +36,7 @@ schemars = { workspace = true, optional = true } serde = { workspace = true, features = ["alloc"] } token-cell = { workspace = true } zenoh-result = { workspace = true } +getrandom = { workspace = true, features = ["js"] } [target.'cfg(not(features = "std"))'.dependencies] hashbrown = { workspace = true }