@@ -13,6 +13,10 @@ exclude = [".*"]
13
13
14
14
[dependencies ]
15
15
cfg-if = " 1"
16
+ once_cell = { version = " 1.19.0" , default-features = false , optional = true }
17
+
18
+ [target .'cfg(all(target_arch = "x86_64", target_env = "sgx"))' .dependencies ]
19
+ once_cell = { version = " 1.19.0" , default-features = false , features = [" race" ] }
16
20
17
21
# When built as part of libstd
18
22
compiler_builtins = { version = " 0.1" , optional = true }
@@ -30,6 +34,10 @@ windows-targets = "0.52"
30
34
[target .'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))' .dependencies ]
31
35
wasm-bindgen = { version = " 0.2.62" , default-features = false , optional = true }
32
36
js-sys = { version = " 0.3" , optional = true }
37
+
38
+ [target .'cfg(any(target_arch = "x86", target_arch = "x86_64"))' .dev-dependencies ]
39
+ once_cell = { version = " 1.19.0" , default-features = false , features = [" race" ] }
40
+
33
41
[target .'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))' .dev-dependencies ]
34
42
wasm-bindgen-test = " 0.3.18"
35
43
@@ -40,7 +48,7 @@ std = []
40
48
# Bumps minimum supported Linux kernel version to 3.17 and Android API level to 23 (Marshmallow).
41
49
linux_disable_fallback = []
42
50
# Feature to enable fallback RDRAND-based implementation on x86/x86_64
43
- rdrand = []
51
+ rdrand = [" once_cell/race " ]
44
52
# Feature to enable JavaScript bindings on wasm*-unknown-unknown
45
53
js = [" wasm-bindgen" , " js-sys" ]
46
54
# Feature to enable custom RNG implementations
0 commit comments