[package]
name = "hashbrown"
version = "0.15.1"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "A Rust port of Google's SwissTable hash map"
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/hashbrown"
readme = "README.md"
keywords = ["hash", "no_std", "hashmap", "swisstable"]
categories = ["data-structures", "no-std"]
exclude = [".github", "/ci/*"]
edition = "2021"
rust-version = "1.65.0"
[dependencies]
foldhash = { version = "0.1.2", default-features = false, optional = true }
rayon = { version = "1.2", optional = true }
serde = { version = "1.0.25", default-features = false, optional = true }
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
compiler_builtins = { version = "0.1.2", optional = true }
alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
allocator-api2 = { version = "0.2.9", optional = true, default-features = false, features = [
"alloc",
] }
equivalent = { version = "1.0", optional = true, default-features = false }
[dev-dependencies]
lazy_static = "1.4"
rand = { version = "0.8.3", features = ["small_rng"] }
rayon = "1.2"
fnv = "1.0.7"
serde_test = "1.0"
doc-comment = "0.3.1"
bumpalo = { version = "3.13.0", features = ["allocator-api2"] }
[features]
default = ["default-hasher", "inline-more", "allocator-api2", "equivalent", "raw-entry"]
nightly = ["allocator-api2?/nightly", "bumpalo/allocator_api"]
rustc-internal-api = []
rustc-dep-of-std = [
"nightly",
"core",
"compiler_builtins",
"alloc",
"rustc-internal-api",
"raw-entry",
]
raw-entry = []
default-hasher = ["dep:foldhash"]
inline-more = []
[package.metadata.docs.rs]
features = ["nightly", "rayon", "serde", "raw-entry"]
rustdoc-args = ["--generate-link-to-definition"]