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