1[package]
2name = "hashbrown"
3version = "0.11.2"
4authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
5description = "A Rust port of Google's SwissTable hash map"
6license = "Apache-2.0/MIT"
7repository = "https://github.com/rust-lang/hashbrown"
8readme = "README.md"
9keywords = ["hash", "no_std", "hashmap", "swisstable"]
10categories = ["data-structures", "no-std"]
11exclude = [".travis.yml", "bors.toml", "/ci/*"]
12edition = "2018"
13
14[dependencies]
15# For the default hasher
16ahash = { version = "0.7.0", default-features = false, optional = true }
17
18# For external trait impls
19rayon = { version = "1.0", optional = true }
20serde = { version = "1.0.25", default-features = false, optional = true }
21
22# When built as part of libstd
23core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
24compiler_builtins = { version = "0.1.2", optional = true }
25alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
26
27# Optional support for bumpalo
28bumpalo = { version = "3.5.0", optional = true }
29
30[dev-dependencies]
31lazy_static = "1.4"
32rand = { version = "0.7.3", features = ["small_rng"] }
33rayon = "1.0"
34fnv = "1.0.7"
35serde_test = "1.0"
36doc-comment = "0.3.1"
37
38[features]
39default = ["ahash", "inline-more"]
40
41ahash-compile-time-rng = ["ahash/compile-time-rng"]
42nightly = []
43rustc-internal-api = []
44rustc-dep-of-std = [
45    "nightly",
46    "core",
47    "compiler_builtins",
48    "alloc",
49    "rustc-internal-api",
50]
51raw = []
52
53# Enables usage of `#[inline]` on far more functions than by default in this
54# crate. This may lead to a performance increase but often comes at a compile
55# time cost.
56inline-more = []
57
58[package.metadata.docs.rs]
59features = ["nightly", "rayon", "serde", "raw"]
60