Explorar el Código

refactor: getrandom as workspace dep

thesimplekid hace 1 año
padre
commit
b77ea560e6
Se han modificado 3 ficheros con 5 adiciones y 1 borrados
  1. 1 0
      Cargo.toml
  2. 1 1
      crates/cashu-sdk/Cargo.toml
  3. 3 0
      crates/cashu/Cargo.toml

+ 1 - 0
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]
 

+ 1 - 1
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 }
 
 

+ 3 - 0
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"] }