Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 1 | [package] |
| 2 | name = "ahash" |
Joel Galenson | 456d737 | 2021-06-14 13:52:26 -0700 | [diff] [blame] | 3 | version = "0.7.4" |
Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 4 | authors = ["Tom Kaitchuck <Tom.Kaitchuck@gmail.com>"] |
| 5 | license = "MIT OR Apache-2.0" |
| 6 | description = "A non-cryptographic hash function using AES-NI for high performance" |
| 7 | documentation = "https://docs.rs/ahash" |
| 8 | repository = "https://github.com/tkaitchuck/ahash" |
| 9 | keywords = ["hash", "hasher", "hashmap", "aes", "no-std"] |
| 10 | categories = ["algorithms", "data-structures", "no-std"] |
| 11 | edition = "2018" |
| 12 | readme = "README.md" |
Haibo Huang | 7fad7bf | 2020-11-25 02:05:55 -0800 | [diff] [blame] | 13 | build = "./build.rs" |
ThiƩbaud Weksteen | ee4f105 | 2021-05-19 15:08:00 +0200 | [diff] [blame] | 14 | exclude = ["/smhasher"] |
Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 15 | |
| 16 | [lib] |
| 17 | name = "ahash" |
| 18 | path = "src/lib.rs" |
| 19 | test = true |
| 20 | doctest = true |
| 21 | bench = true |
| 22 | doc = true |
| 23 | |
| 24 | [features] |
| 25 | default = ["std"] |
| 26 | |
Haibo Huang | 7fad7bf | 2020-11-25 02:05:55 -0800 | [diff] [blame] | 27 | # Enabling this will enable `AHashMap` and `AHashSet`. |
| 28 | std = [] |
Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 29 | |
Haibo Huang | 7fad7bf | 2020-11-25 02:05:55 -0800 | [diff] [blame] | 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. |
Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 34 | compile-time-rng = ["const-random"] |
| 35 | |
Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 36 | [[bench]] |
| 37 | name = "ahash" |
| 38 | path = "tests/bench.rs" |
| 39 | harness = false |
| 40 | |
| 41 | [[bench]] |
| 42 | name = "map" |
| 43 | path = "tests/map_tests.rs" |
| 44 | harness = false |
| 45 | |
| 46 | [profile.test] |
| 47 | opt-level = 2 |
| 48 | lto = 'fat' |
| 49 | |
| 50 | [profile.release] |
| 51 | opt-level = 3 |
| 52 | debug = false |
| 53 | lto = 'fat' |
| 54 | debug-assertions = false |
| 55 | codegen-units = 1 |
| 56 | |
| 57 | [profile.bench] |
| 58 | opt-level = 3 |
| 59 | debug = false |
| 60 | lto = 'fat' |
| 61 | debug-assertions = false |
| 62 | codegen-units = 1 |
| 63 | |
Haibo Huang | 7fad7bf | 2020-11-25 02:05:55 -0800 | [diff] [blame] | 64 | [build-dependencies] |
| 65 | version_check = "0.9" |
| 66 | |
| 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] |
ThiƩbaud Weksteen | ee4f105 | 2021-05-19 15:08:00 +0200 | [diff] [blame] | 68 | once_cell = { version = "1.5.2", default-features = false, features = ["unstable", "alloc"] } |
Haibo Huang | 7fad7bf | 2020-11-25 02:05:55 -0800 | [diff] [blame] | 69 | getrandom = { version = "0.2.0" } |
| 70 | const-random = { version = "0.1.12", optional = true } |
| 71 | serde = { version = "1.0.117", optional = true } |
| 72 | |
| 73 | [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] |
| 74 | const-random = { version = "0.1.12", optional = true } |
| 75 | serde = { version = "1.0.117", optional = true } |
Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 76 | |
| 77 | [dev-dependencies] |
| 78 | no-panic = "0.1.10" |
| 79 | criterion = {version = "0.3.2"} |
| 80 | seahash = "4.0" |
| 81 | fnv = "1.0.5" |
| 82 | fxhash = "0.2.1" |
| 83 | hex = "0.4.2" |
| 84 | rand = "0.7.3" |
Haibo Huang | 7fad7bf | 2020-11-25 02:05:55 -0800 | [diff] [blame] | 85 | serde_json = "1.0.59" |
Chih-Hung Hsieh | 4cadcb4 | 2020-11-09 15:54:21 -0800 | [diff] [blame] | 86 | |
| 87 | [package.metadata.docs.rs] |
| 88 | rustc-args = ["-C", "target-feature=+aes"] |
| 89 | rustdoc-args = ["-C", "target-feature=+aes"] |
| 90 | features = ["std"] |