| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2018" |
| 14 |
rust-version = "1.60.0" |
| 15 |
name = "ahash" |
| 16 |
version = "0.8.12" |
| 17 |
authors = ["Tom Kaitchuck <[email protected]>"] |
| 18 |
build = "build.rs" |
| 19 |
exclude = [ |
| 20 |
"/smhasher", |
| 21 |
"/benchmark_tools", |
| 22 |
] |
| 23 |
autobins = false |
| 24 |
autoexamples = false |
| 25 |
autotests = false |
| 26 |
autobenches = false |
| 27 |
description = "A non-cryptographic hash function using AES-NI for high performance" |
| 28 |
documentation = "https://docs.rs/ahash" |
| 29 |
readme = "README.md" |
| 30 |
keywords = [ |
| 31 |
"hash", |
| 32 |
"hasher", |
| 33 |
"hashmap", |
| 34 |
"aes", |
| 35 |
"no-std", |
| 36 |
] |
| 37 |
categories = [ |
| 38 |
"algorithms", |
| 39 |
"data-structures", |
| 40 |
"no-std", |
| 41 |
] |
| 42 |
license = "MIT OR Apache-2.0" |
| 43 |
repository = "https://github.com/tkaitchuck/ahash" |
| 44 |
|
| 45 |
[package.metadata.docs.rs] |
| 46 |
features = ["std"] |
| 47 |
rustc-args = [ |
| 48 |
"-C", |
| 49 |
"target-feature=+aes", |
| 50 |
] |
| 51 |
rustdoc-args = [ |
| 52 |
"-C", |
| 53 |
"target-feature=+aes", |
| 54 |
] |
| 55 |
|
| 56 |
[profile.bench] |
| 57 |
opt-level = 3 |
| 58 |
lto = "fat" |
| 59 |
codegen-units = 1 |
| 60 |
debug = 0 |
| 61 |
debug-assertions = false |
| 62 |
|
| 63 |
[profile.release] |
| 64 |
opt-level = 3 |
| 65 |
lto = "fat" |
| 66 |
codegen-units = 1 |
| 67 |
debug = 0 |
| 68 |
debug-assertions = false |
| 69 |
|
| 70 |
[profile.test] |
| 71 |
opt-level = 2 |
| 72 |
lto = "fat" |
| 73 |
|
| 74 |
[lib] |
| 75 |
name = "ahash" |
| 76 |
path = "src/lib.rs" |
| 77 |
test = true |
| 78 |
doctest = true |
| 79 |
bench = true |
| 80 |
doc = true |
| 81 |
|
| 82 |
[[test]] |
| 83 |
name = "bench" |
| 84 |
path = "tests/bench.rs" |
| 85 |
|
| 86 |
[[test]] |
| 87 |
name = "map_tests" |
| 88 |
path = "tests/map_tests.rs" |
| 89 |
|
| 90 |
[[test]] |
| 91 |
name = "nopanic" |
| 92 |
path = "tests/nopanic.rs" |
| 93 |
|
| 94 |
[[bench]] |
| 95 |
name = "ahash" |
| 96 |
path = "tests/bench.rs" |
| 97 |
harness = false |
| 98 |
|
| 99 |
[[bench]] |
| 100 |
name = "map" |
| 101 |
path = "tests/map_tests.rs" |
| 102 |
harness = false |
| 103 |
|
| 104 |
[dependencies.cfg-if] |
| 105 |
version = "1.0" |
| 106 |
|
| 107 |
[dependencies.const-random] |
| 108 |
version = "0.1.17" |
| 109 |
optional = true |
| 110 |
|
| 111 |
[dependencies.getrandom] |
| 112 |
version = "0.3.1" |
| 113 |
optional = true |
| 114 |
|
| 115 |
[dependencies.portable-atomic] |
| 116 |
version = "1.0.0" |
| 117 |
optional = true |
| 118 |
|
| 119 |
[dependencies.serde] |
| 120 |
version = "1.0.117" |
| 121 |
optional = true |
| 122 |
|
| 123 |
[dependencies.zerocopy] |
| 124 |
version = "0.8.24" |
| 125 |
features = ["simd"] |
| 126 |
default-features = false |
| 127 |
|
| 128 |
[dev-dependencies.criterion] |
| 129 |
version = "0.3.2" |
| 130 |
features = ["html_reports"] |
| 131 |
|
| 132 |
[dev-dependencies.fnv] |
| 133 |
version = "1.0.5" |
| 134 |
|
| 135 |
[dev-dependencies.fxhash] |
| 136 |
version = "0.2.1" |
| 137 |
|
| 138 |
[dev-dependencies.hashbrown] |
| 139 |
version = "0.14.3" |
| 140 |
|
| 141 |
[dev-dependencies.hex] |
| 142 |
version = "0.4.2" |
| 143 |
|
| 144 |
[dev-dependencies.no-panic] |
| 145 |
version = "0.1.10" |
| 146 |
|
| 147 |
[dev-dependencies.pcg-mwc] |
| 148 |
version = "0.2.1" |
| 149 |
|
| 150 |
[dev-dependencies.rand] |
| 151 |
version = "0.8.5" |
| 152 |
|
| 153 |
[dev-dependencies.seahash] |
| 154 |
version = "4.0" |
| 155 |
|
| 156 |
[dev-dependencies.serde_json] |
| 157 |
version = "1.0.59" |
| 158 |
|
| 159 |
[dev-dependencies.smallvec] |
| 160 |
version = "1.13.1" |
| 161 |
|
| 162 |
[build-dependencies.version_check] |
| 163 |
version = "0.9.4" |
| 164 |
|
| 165 |
[features] |
| 166 |
atomic-polyfill = [ |
| 167 |
"dep:portable-atomic", |
| 168 |
"once_cell/critical-section", |
| 169 |
] |
| 170 |
compile-time-rng = ["const-random"] |
| 171 |
default = [ |
| 172 |
"std", |
| 173 |
"runtime-rng", |
| 174 |
] |
| 175 |
nightly-arm-aes = [] |
| 176 |
no-rng = [] |
| 177 |
runtime-rng = ["getrandom"] |
| 178 |
std = [] |
| 179 |
|
| 180 |
[target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies.once_cell] |
| 181 |
version = "1.18.0" |
| 182 |
features = ["alloc"] |
| 183 |
default-features = false |