Skip to content

Commit c491da5

Browse files
PiotrSikoranullpo-head
authored andcommitted
Update hashbrown to v0.11.0. (proxy-wasm#91)
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 78220a9 commit c491da5

File tree

8 files changed

+237
-43
lines changed

8 files changed

+237
-43
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edition = "2018"
1212
wee-alloc = ["wee_alloc"]
1313

1414
[dependencies]
15-
hashbrown = "0.9"
15+
hashbrown = "0.11"
1616
log = "0.4"
1717
wee_alloc = { version = "0.4", optional = true }
1818

bazel/cargo/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ alias(
5050

5151
alias(
5252
name = "hashbrown",
53-
actual = "@raze__hashbrown__0_9_1//:hashbrown",
53+
actual = "@raze__hashbrown__0_11_0//:hashbrown",
5454
tags = [
5555
"cargo-raze",
5656
"manual",

bazel/cargo/Cargo.raze.lock

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
# It is not intended for manual editing.
33
[[package]]
44
name = "ahash"
5-
version = "0.4.7"
5+
version = "0.7.2"
66
source = "registry+https://github.com/rust-lang/crates.io-index"
7-
checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e"
7+
checksum = "7f200cbb1e856866d9eade941cf3aa0c5d7dd36f74311c4273b494f4ef036957"
8+
dependencies = [
9+
"getrandom",
10+
"once_cell",
11+
"version_check",
12+
]
813

914
[[package]]
1015
name = "autocfg"
@@ -83,9 +88,9 @@ dependencies = [
8388

8489
[[package]]
8590
name = "hashbrown"
86-
version = "0.9.1"
91+
version = "0.11.0"
8792
source = "registry+https://github.com/rust-lang/crates.io-index"
88-
checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04"
93+
checksum = "362385356d610bd1e5a408ddf8d022041774b683f345a1d2cfcb4f60f8ae2db5"
8994
dependencies = [
9095
"ahash",
9196
]
@@ -160,19 +165,10 @@ dependencies = [
160165
]
161166

162167
[[package]]
163-
name = "percent-encoding"
164-
version = "2.1.0"
168+
name = "once_cell"
169+
version = "1.7.2"
165170
source = "registry+https://github.com/rust-lang/crates.io-index"
166-
checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
167-
168-
[[package]]
169-
name = "proc-macro2"
170-
version = "1.0.24"
171-
source = "registry+https://github.com/rust-lang/crates.io-index"
172-
checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71"
173-
dependencies = [
174-
"unicode-xid",
175-
]
171+
checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3"
176172

177173
[[package]]
178174
name = "proxy-wasm-experimental"
@@ -265,6 +261,12 @@ dependencies = [
265261
"winapi",
266262
]
267263

264+
[[package]]
265+
name = "version_check"
266+
version = "0.9.2"
267+
source = "registry+https://github.com/rust-lang/crates.io-index"
268+
checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
269+
268270
[[package]]
269271
name = "wasi"
270272
version = "0.10.2+wasi-snapshot-preview1"

bazel/cargo/crates.bzl

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def raze_fetch_remote_crates():
1313
"""This function defines a collection of repos and should be called in a WORKSPACE file"""
1414
maybe(
1515
http_archive,
16-
name = "raze__ahash__0_4_7",
17-
url = "https://crates.io/api/v1/crates/ahash/0.4.7/download",
16+
name = "raze__ahash__0_7_2",
17+
url = "https://crates.io/api/v1/crates/ahash/0.7.2/download",
1818
type = "tar.gz",
19-
sha256 = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e",
20-
strip_prefix = "ahash-0.4.7",
21-
build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.4.7.bazel"),
19+
sha256 = "7f200cbb1e856866d9eade941cf3aa0c5d7dd36f74311c4273b494f4ef036957",
20+
strip_prefix = "ahash-0.7.2",
21+
build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.7.2.bazel"),
2222
)
2323

2424
maybe(
@@ -63,12 +63,12 @@ def raze_fetch_remote_crates():
6363

6464
maybe(
6565
http_archive,
66-
name = "raze__hashbrown__0_9_1",
67-
url = "https://crates.io/api/v1/crates/hashbrown/0.9.1/download",
66+
name = "raze__hashbrown__0_11_0",
67+
url = "https://crates.io/api/v1/crates/hashbrown/0.11.0/download",
6868
type = "tar.gz",
69-
sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04",
70-
strip_prefix = "hashbrown-0.9.1",
71-
build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.9.1.bazel"),
69+
sha256 = "362385356d610bd1e5a408ddf8d022041774b683f345a1d2cfcb4f60f8ae2db5",
70+
strip_prefix = "hashbrown-0.11.0",
71+
build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.11.0.bazel"),
7272
)
7373

7474
maybe(
@@ -111,6 +111,16 @@ def raze_fetch_remote_crates():
111111
build_file = Label("//bazel/cargo/remote:BUILD.num-traits-0.2.14.bazel"),
112112
)
113113

114+
maybe(
115+
http_archive,
116+
name = "raze__once_cell__1_7_2",
117+
url = "https://crates.io/api/v1/crates/once_cell/1.7.2/download",
118+
type = "tar.gz",
119+
sha256 = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3",
120+
strip_prefix = "once_cell-1.7.2",
121+
build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.7.2.bazel"),
122+
)
123+
114124
maybe(
115125
http_archive,
116126
name = "raze__time__0_1_43",
@@ -121,6 +131,16 @@ def raze_fetch_remote_crates():
121131
build_file = Label("//bazel/cargo/remote:BUILD.time-0.1.43.bazel"),
122132
)
123133

134+
maybe(
135+
http_archive,
136+
name = "raze__version_check__0_9_2",
137+
url = "https://crates.io/api/v1/crates/version_check/0.9.2/download",
138+
type = "tar.gz",
139+
sha256 = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed",
140+
strip_prefix = "version_check-0.9.2",
141+
build_file = Label("//bazel/cargo/remote:BUILD.version_check-0.9.2.bazel"),
142+
)
143+
124144
maybe(
125145
http_archive,
126146
name = "raze__wasi__0_10_2_wasi_snapshot_preview1",
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
"""
2+
@generated
3+
cargo-raze crate build file.
4+
5+
DO NOT EDIT! Replaced on runs of cargo-raze
6+
"""
7+
8+
# buildifier: disable=load
9+
load("@bazel_skylib//lib:selects.bzl", "selects")
10+
11+
# buildifier: disable=load
12+
load(
13+
"@rules_rust//rust:rust.bzl",
14+
"rust_binary",
15+
"rust_library",
16+
"rust_test",
17+
)
18+
19+
package(default_visibility = [
20+
# Public for visibility by "@raze__crate__version//" targets.
21+
#
22+
# Prefer access through "//bazel/cargo", which limits external
23+
# visibility to explicit Cargo.toml dependencies.
24+
"//visibility:public",
25+
])
26+
27+
licenses([
28+
"notice", # MIT from expression "MIT OR Apache-2.0"
29+
])
30+
31+
# Generated Targets
32+
# buildifier: disable=out-of-order-load
33+
# buildifier: disable=load-on-top
34+
load(
35+
"@rules_rust//cargo:cargo_build_script.bzl",
36+
"cargo_build_script",
37+
)
38+
39+
cargo_build_script(
40+
name = "ahash_build_script",
41+
srcs = glob(["**/*.rs"]),
42+
build_script_env = {
43+
},
44+
crate_features = [
45+
],
46+
crate_root = "build.rs",
47+
data = glob(["**"]),
48+
edition = "2018",
49+
rustc_flags = [
50+
"--cap-lints=allow",
51+
],
52+
tags = [
53+
"cargo-raze",
54+
"manual",
55+
],
56+
version = "0.7.2",
57+
visibility = ["//visibility:private"],
58+
deps = [
59+
"@raze__version_check__0_9_2//:version_check",
60+
] + selects.with_or({
61+
# cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
62+
(
63+
"@rules_rust//rust/platform:aarch64-apple-darwin",
64+
"@rules_rust//rust/platform:aarch64-apple-ios",
65+
"@rules_rust//rust/platform:aarch64-linux-android",
66+
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
67+
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
68+
"@rules_rust//rust/platform:i686-apple-darwin",
69+
"@rules_rust//rust/platform:i686-linux-android",
70+
"@rules_rust//rust/platform:i686-pc-windows-msvc",
71+
"@rules_rust//rust/platform:i686-unknown-freebsd",
72+
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
73+
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
74+
"@rules_rust//rust/platform:s390x-unknown-linux-gnu",
75+
"@rules_rust//rust/platform:wasm32-wasi",
76+
"@rules_rust//rust/platform:x86_64-apple-darwin",
77+
"@rules_rust//rust/platform:x86_64-apple-ios",
78+
"@rules_rust//rust/platform:x86_64-linux-android",
79+
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
80+
"@rules_rust//rust/platform:x86_64-unknown-freebsd",
81+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
82+
): [
83+
],
84+
"//conditions:default": [],
85+
}) + selects.with_or({
86+
# cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")))
87+
(
88+
"@rules_rust//rust/platform:wasm32-unknown-unknown",
89+
): [
90+
],
91+
"//conditions:default": [],
92+
}),
93+
)
94+
95+
# Unsupported target "ahash" with type "bench" omitted
96+
97+
# Unsupported target "map" with type "bench" omitted
98+
99+
rust_library(
100+
name = "ahash",
101+
srcs = glob(["**/*.rs"]),
102+
aliases = {
103+
},
104+
crate_features = [
105+
],
106+
crate_root = "src/lib.rs",
107+
crate_type = "lib",
108+
data = [],
109+
edition = "2018",
110+
rustc_flags = [
111+
"--cap-lints=allow",
112+
],
113+
tags = [
114+
"cargo-raze",
115+
"manual",
116+
],
117+
version = "0.7.2",
118+
# buildifier: leave-alone
119+
deps = [
120+
":ahash_build_script",
121+
] + selects.with_or({
122+
# cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
123+
(
124+
"@rules_rust//rust/platform:aarch64-apple-darwin",
125+
"@rules_rust//rust/platform:aarch64-apple-ios",
126+
"@rules_rust//rust/platform:aarch64-linux-android",
127+
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu",
128+
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi",
129+
"@rules_rust//rust/platform:i686-apple-darwin",
130+
"@rules_rust//rust/platform:i686-linux-android",
131+
"@rules_rust//rust/platform:i686-pc-windows-msvc",
132+
"@rules_rust//rust/platform:i686-unknown-freebsd",
133+
"@rules_rust//rust/platform:i686-unknown-linux-gnu",
134+
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu",
135+
"@rules_rust//rust/platform:s390x-unknown-linux-gnu",
136+
"@rules_rust//rust/platform:wasm32-wasi",
137+
"@rules_rust//rust/platform:x86_64-apple-darwin",
138+
"@rules_rust//rust/platform:x86_64-apple-ios",
139+
"@rules_rust//rust/platform:x86_64-linux-android",
140+
"@rules_rust//rust/platform:x86_64-pc-windows-msvc",
141+
"@rules_rust//rust/platform:x86_64-unknown-freebsd",
142+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
143+
): [
144+
"@raze__getrandom__0_2_2//:getrandom",
145+
"@raze__once_cell__1_7_2//:once_cell",
146+
],
147+
"//conditions:default": [],
148+
}) + selects.with_or({
149+
# cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")))
150+
(
151+
"@rules_rust//rust/platform:wasm32-unknown-unknown",
152+
): [
153+
],
154+
"//conditions:default": [],
155+
}),
156+
)
157+
158+
# Unsupported target "bench" with type "test" omitted
159+
160+
# Unsupported target "map_tests" with type "test" omitted
161+
162+
# Unsupported target "nopanic" with type "test" omitted

bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel renamed to bazel/cargo/remote/BUILD.hashbrown-0.11.0.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ rust_library(
5151
"cargo-raze",
5252
"manual",
5353
],
54-
version = "0.9.1",
54+
version = "0.11.0",
5555
# buildifier: leave-alone
5656
deps = [
57-
"@raze__ahash__0_4_7//:ahash",
57+
"@raze__ahash__0_7_2//:ahash",
5858
],
5959
)
6060

bazel/cargo/remote/BUILD.ahash-0.4.7.bazel renamed to bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,27 @@ licenses([
3030

3131
# Generated Targets
3232

33-
# Unsupported target "ahash" with type "bench" omitted
33+
# Unsupported target "bench" with type "example" omitted
3434

35-
# Unsupported target "map" with type "bench" omitted
35+
# Unsupported target "bench_acquire" with type "example" omitted
36+
37+
# Unsupported target "bench_vs_lazy_static" with type "example" omitted
38+
39+
# Unsupported target "lazy_static" with type "example" omitted
40+
41+
# Unsupported target "reentrant_init_deadlocks" with type "example" omitted
42+
43+
# Unsupported target "regex" with type "example" omitted
44+
45+
# Unsupported target "test_synchronization" with type "example" omitted
3646

3747
rust_library(
38-
name = "ahash",
48+
name = "once_cell",
3949
srcs = glob(["**/*.rs"]),
4050
crate_features = [
51+
"alloc",
52+
"race",
53+
"unstable",
4154
],
4255
crate_root = "src/lib.rs",
4356
crate_type = "lib",
@@ -50,14 +63,10 @@ rust_library(
5063
"cargo-raze",
5164
"manual",
5265
],
53-
version = "0.4.7",
66+
version = "1.7.2",
5467
# buildifier: leave-alone
5568
deps = [
5669
],
5770
)
5871

59-
# Unsupported target "bench" with type "test" omitted
60-
61-
# Unsupported target "map_tests" with type "test" omitted
62-
63-
# Unsupported target "nopanic" with type "test" omitted
72+
# Unsupported target "it" with type "test" omitted

0 commit comments

Comments
 (0)