From 56ad50d84b6304bf5e043bc7004122bd5d30dace Mon Sep 17 00:00:00 2001 From: "Paul H. Liu" Date: Fri, 10 Jan 2025 20:34:03 -0800 Subject: [PATCH] Enable getrandom/custom manually for registry canister --- Cargo.lock | 1 + rs/registry/canister/Cargo.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 6adacd63a50..e694a9425c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18340,6 +18340,7 @@ dependencies = [ "dfn_core", "dfn_http_metrics", "futures", + "getrandom", "ic-base-types", "ic-canister-client-sender", "ic-cdk 0.16.0", diff --git a/rs/registry/canister/Cargo.toml b/rs/registry/canister/Cargo.toml index 25ad4b78899..43ed07df70b 100644 --- a/rs/registry/canister/Cargo.toml +++ b/rs/registry/canister/Cargo.toml @@ -51,6 +51,9 @@ prost = { workspace = true } serde = { workspace = true } url = { workspace = true } +[target.'cfg(target_arch = "wasm32")'.dependencies] +getrandom = { version = "0.2", features = [ "custom" ] } + [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] assert_matches = { workspace = true } candid_parser = { workspace = true }