refactor: getrandom as workspace dep

This commit is contained in:
thesimplekid
2024-03-31 18:58:55 +01:00
parent 91149c1ce0
commit b77ea560e6
3 changed files with 5 additions and 1 deletions

View File

@@ -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]

View File

@@ -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 }

View File

@@ -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"] }