Skip to content

Commit cbe2402

Browse files
committed
Bug 1631721 - Vendor the hashbrown crate r=manishearth
This is the hash map implementation now used in the Rust standard library: * https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html#a-new-hashmapk-v-implementation * rust-lang/rust#58623 * https://crates.io/crates/hashbrown Differential Revision: https://phabricator.services.mozilla.com/D71740
1 parent 04d59f8 commit cbe2402

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+16329
-33
lines changed

Cargo.lock

Lines changed: 50 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

servo/components/style/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ encoding_rs = {version = "0.8", optional = true}
4040
euclid = "0.20"
4141
fallible = { path = "../fallible" }
4242
fxhash = "0.2"
43+
hashbrown = "0.7"
4344
hashglobe = { path = "../hashglobe" }
4445
html5ever = {version = "0.24", optional = true}
4546
indexmap = "1.0"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"files":{"Cargo.toml":"f0e25e3e6f839a66910d21529e8ba1912fcc86985869aa1e0bc82615bcc9c616","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"ff8f68cb076caf8cefe7a6430d4ac086ce6af2ca8ce2c4e5a2004d4552ef52a2","README.md":"cae69bc8ba7fee044c48b7126a5facb831c29913753f7daec85a057d6d2b33fd","rustfmt.toml":"e090969e99df9360705680cc0097cfaddae10c22dc2e01470592cf3b9787fd36","src/aes_hash.rs":"e6fbcaf7d5a0153b98c7e70f8dd15cb56b1e4b9ae98747c05c12858342065ea6","src/convert.rs":"45c69b65982a95cc78d1b4e54c662be7d852aa03366acf57699e55a62ecb8930","src/fallback_hash.rs":"3d398c24197e7413461edbd79821aba118284dcdd0f1eaa01672fb717e561601","src/folded_multiply.rs":"f3a6ddc1db0655cc1ca775b8370175b3a098ed60e31bf15573879d2ab6870acb","src/hash_map.rs":"36bf0b13e334d7cedbf83e4822438098b227e7c7e381abe5e1eeac1ff6caa209","src/hash_quality_test.rs":"ecb76478989eb3b96e4a299aeccb0d75ba53d13b2c11e5a3c8de15d466a7476a","src/hash_set.rs":"4289672c142e314a0bfc6535b5e8f5e07cc78b60c0c7b308a43fa361eca6ddea","src/lib.rs":"ad3538e0a10bba5fba2f7364f2e0673a62c99b617b7c2fd96232100042a64781","src/random_state.rs":"85749d2b2c915c29c129f609cc22270ab1902a436bfc3997002adecf93c62406","tests/bench.rs":"a206178c8fb2a9756fb4292c44a3a4355143915217018e253930efd1575e99fb","tests/map_tests.rs":"68b81bcef528a83b8b786baad15db8cae13e5ca1db1e595e5aa74bdbf8d8115b","tests/nopanic.rs":"bc54a25d271c690ed49f6eb896e377bfb96217d29eb2c198052771714e972a56"},"package":"0989268a37e128d4d7a8028f1c60099430113fdbc70419010601ce51a228e4fe"}

third_party/rust/ahash/Cargo.toml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies
7+
#
8+
# If you believe there's an error in this file please file an
9+
# issue against the rust-lang/cargo repository. If you're
10+
# editing this file be aware that the upstream Cargo.toml
11+
# will likely look very different (and much more reasonable)
12+
13+
[package]
14+
edition = "2018"
15+
name = "ahash"
16+
version = "0.3.2"
17+
authors = ["Tom Kaitchuck <[email protected]>"]
18+
description = "A non-cryprographic hash function using AES-NI for high performance"
19+
documentation = "https://docs.rs/ahash"
20+
readme = "README.md"
21+
keywords = ["hash", "hashmap", "aes", "aes-ni", "no-std"]
22+
license = "MIT OR Apache-2.0"
23+
repository = "https://github.com/tkaitchuck/ahash"
24+
[package.metadata.docs.rs]
25+
features = ["std"]
26+
rustc-args = ["-C", "target-feature=+aes"]
27+
rustdoc-args = ["-C", "target-feature=+aes"]
28+
[profile.bench]
29+
opt-level = 3
30+
lto = "fat"
31+
codegen-units = 1
32+
debug = false
33+
debug-assertions = false
34+
35+
[profile.release]
36+
opt-level = 3
37+
lto = "fat"
38+
codegen-units = 1
39+
debug = false
40+
debug-assertions = false
41+
42+
[profile.test]
43+
opt-level = 2
44+
45+
[lib]
46+
name = "ahash"
47+
path = "src/lib.rs"
48+
test = true
49+
doctest = true
50+
bench = true
51+
doc = true
52+
53+
[[bench]]
54+
name = "ahash"
55+
path = "tests/bench.rs"
56+
harness = false
57+
58+
[[bench]]
59+
name = "map"
60+
path = "tests/map_tests.rs"
61+
harness = false
62+
[dependencies.const-random]
63+
version = "0.1.6"
64+
optional = true
65+
[dev-dependencies.criterion]
66+
version = "0.3.0"
67+
features = ["real_blackbox"]
68+
69+
[dev-dependencies.fnv]
70+
version = "1.0.5"
71+
72+
[dev-dependencies.fxhash]
73+
version = "0.2.1"
74+
75+
[dev-dependencies.hex]
76+
version = "0.3.2"
77+
78+
[dev-dependencies.no-panic]
79+
version = "0.1.10"
80+
81+
[dev-dependencies.rand]
82+
version = "0.6.5"
83+
84+
[dev-dependencies.seahash]
85+
version = "3.0.5"
86+
87+
[features]
88+
compile-time-rng = ["const-random"]
89+
default = ["compile-time-rng", "std"]
90+
std = []

0 commit comments

Comments
 (0)