Skip to content

Commit 9d44f14

Browse files
fix getrandom problem with unsupported target
1 parent 634e212 commit 9d44f14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ sha2 = { version = "0.10.8", default-features = false }
4646
signature = { version = "2.2.0", default-features = false, optional = true }
4747
x25519-dalek = { version = "2", default-features = false, optional = true }
4848

49+
getrandom = { version = "0.2", default-features = false, features = [
50+
"custom"
51+
] }
4952
paste = { version = "1.0.15", default-features = false }
5053
pki-types = { package = "rustls-pki-types", version = "1.10.0", default-features = false }
5154
rand_core = { version = "0.6.4", default-features = false, features = [
@@ -61,10 +64,6 @@ getrandom = { version = "0.2", features = [
6164

6265
[dev-dependencies]
6366
bytes = { version = "1.9.0", default-features = false }
64-
# workaround to build on no_std targets
65-
getrandom = { version = "0.2", features = [
66-
"custom"
67-
] }
6867
itertools = "0.13.0"
6968
rsa = { version = "0.9.7", default-features = false, features = [
7069
"sha2",
@@ -101,6 +100,7 @@ std = [
101100
"rustls/std",
102101
"ed25519-dalek?/std",
103102
"pkcs1?/std",
103+
"getrandom/std"
104104
]
105105
alloc = ["webpki?/alloc", "ecdsa?/alloc", "signature?/alloc", "ccm?/alloc"]
106106
zeroize = ["ed25519-dalek?/zeroize", "x25519-dalek?/zeroize"]

0 commit comments

Comments
 (0)