From b77ea560e623169b3fa46ea4ac7145e392a8088b Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Sun, 31 Mar 2024 18:58:55 +0100 Subject: [PATCH] refactor: getrandom as workspace dep --- Cargo.toml | 1 + crates/cashu-sdk/Cargo.toml | 2 +- crates/cashu/Cargo.toml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e973f37b..a912ef1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ tracing = { version = "0.1", default-features = false } tracing-subscriber = "0.3" uniffi = "0.24" thiserror = "1.0.50" +getrandom = { version = "0.2", features = ["js"] } [profile] diff --git a/crates/cashu-sdk/Cargo.toml b/crates/cashu-sdk/Cargo.toml index cf024560..95757549 100644 --- a/crates/cashu-sdk/Cargo.toml +++ b/crates/cashu-sdk/Cargo.toml @@ -33,7 +33,6 @@ serde_json = { workspace = true } url = { workspace = true } tracing = { workspace = true } thiserror = { workspace = true } -getrandom = { version = "0.2", features = ["js"] } async-trait = "0.1.74" gloo = { version = "0.11.0", optional = true, features = ["net"] } http = "1.0.0" @@ -45,5 +44,6 @@ redb = { version = "2.0.0", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] } +getrandom = { workspace = true } diff --git a/crates/cashu/Cargo.toml b/crates/cashu/Cargo.toml index 9cd67315..aefcb509 100644 --- a/crates/cashu/Cargo.toml +++ b/crates/cashu/Cargo.toml @@ -43,5 +43,8 @@ itertools = "0.12.0" thiserror = { workspace = true } uuid = { version = "1.6.1", features = ["v4"] } +[target.'cfg(target_arch = "wasm32")'.dependencies] +getrandom = { workspace = true } + [dev-dependencies] # tokio = {version = "1.27.0", features = ["rt", "macros"] }