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