@@ -22,15 +22,18 @@ bench = true
22
22
doc = true
23
23
24
24
[features ]
25
- default = [" std" ]
25
+ default = [" std" , " runtime-rng " ]
26
26
27
27
# Enabling this will enable `AHashMap` and `AHashSet`.
28
28
std = []
29
29
30
- # This is an alternitive to runtime key generation which does compile time key generation if getrandom is not available.
31
- # (If getrandom is available this does nothing.)
32
- # If this is on (and getrandom is off) it implies the produced binary will not be identical.
33
- # If this is disabled and gerrandom is unavailable constant keys are used.
30
+ # Runtime random key generation using getrandom.
31
+ runtime-rng = [" getrandom" , " once_cell" ]
32
+
33
+ # This is an alternative to runtime key generation which does compile time key generation if runtime-rng is not available.
34
+ # (If runtime-rng is available this does nothing.)
35
+ # If this is on (and runtime-rng is off) it implies the produced binary will not be identical.
36
+ # If this is disabled and runtime-rng is unavailable constant keys are used.
34
37
compile-time-rng = [" const-random" ]
35
38
36
39
[[bench ]]
@@ -64,12 +67,9 @@ codegen-units = 1
64
67
[build-dependencies ]
65
68
version_check = " 0.9"
66
69
67
- [target .'cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))' .dependencies ]
68
- getrandom = { version = " 0.2.3" }
69
- const-random = { version = " 0.1.12" , optional = true }
70
- serde = { version = " 1.0.117" , optional = true }
71
-
72
- [target .'cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")))' .dependencies ]
70
+ [dependencies ]
71
+ once_cell = { version = " 1.8" , default-features = false , features = [" unstable" , " alloc" ], optional = true }
72
+ getrandom = { version = " 0.2.3" , optional = true }
73
73
const-random = { version = " 0.1.12" , optional = true }
74
74
serde = { version = " 1.0.117" , optional = true }
75
75
0 commit comments