Skip to content

Commit 8bbbe6a

Browse files
authored
Merge branch 'main' into releng_v0.2.2
2 parents 96b4a30 + 44c5a3c commit 8bbbe6a

31 files changed

+1113
-144
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.2
1+
7.2.1

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ jobs:
238238
- 'http_body'
239239
- 'http_config'
240240
- 'http_headers'
241+
- 'grpc_auth_random'
241242

242243
defaults:
243244
run:
@@ -301,6 +302,7 @@ jobs:
301302
- 'http_body'
302303
- 'http_config'
303304
- 'http_headers'
305+
- 'grpc_auth_random'
304306

305307
defaults:
306308
run:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- [HTTP Headers](./examples/http_headers/)
2222
- [HTTP Response body](./examples/http_body/)
2323
- [HTTP Configuration](./examples/http_config/)
24+
- [gRPC Auth (random)](./examples/grpc_auth_random/)
2425

2526
## Articles & blog posts from the community
2627

@@ -32,5 +33,5 @@
3233
When updating dependencies, you need to regenerate Bazel `BUILD` files to match updated `Cargo.toml`:
3334

3435
```sh
35-
bazel run //bazel/cargo:crates_vendor -- --repin
36+
bazel run //bazel/cargo:crates_vendor -- --repin all
3637
```

bazel/cargo/Cargo.Bazel.lock

Lines changed: 66 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ version = 3
44

55
[[package]]
66
name = "ahash"
7-
version = "0.8.3"
7+
version = "0.8.11"
88
source = "registry+https://github.com/rust-lang/crates.io-index"
9-
checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
9+
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
1010
dependencies = [
1111
"cfg-if",
1212
"once_cell",
1313
"version_check",
14+
"zerocopy",
1415
]
1516

1617
[[package]]
1718
name = "allocator-api2"
18-
version = "0.2.14"
19+
version = "0.2.18"
1920
source = "registry+https://github.com/rust-lang/crates.io-index"
20-
checksum = "c4f263788a35611fba42eb41ff811c5d0360c58b97402570312a350736e2542e"
21+
checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
2122

2223
[[package]]
2324
name = "cfg-if"
@@ -27,25 +28,34 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
2728

2829
[[package]]
2930
name = "hashbrown"
30-
version = "0.14.0"
31+
version = "0.14.5"
3132
source = "registry+https://github.com/rust-lang/crates.io-index"
32-
checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
33+
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
3334
dependencies = [
3435
"ahash",
3536
"allocator-api2",
3637
]
3738

3839
[[package]]
3940
name = "log"
40-
version = "0.4.18"
41+
version = "0.4.22"
4142
source = "registry+https://github.com/rust-lang/crates.io-index"
42-
checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de"
43+
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
4344

4445
[[package]]
4546
name = "once_cell"
46-
version = "1.18.0"
47+
version = "1.19.0"
4748
source = "registry+https://github.com/rust-lang/crates.io-index"
48-
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
49+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
50+
51+
[[package]]
52+
name = "proc-macro2"
53+
version = "1.0.86"
54+
source = "registry+https://github.com/rust-lang/crates.io-index"
55+
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
56+
dependencies = [
57+
"unicode-ident",
58+
]
4959

5060
[[package]]
5161
name = "proxy-wasm"
@@ -55,8 +65,54 @@ dependencies = [
5565
"log",
5666
]
5767

68+
[[package]]
69+
name = "quote"
70+
version = "1.0.36"
71+
source = "registry+https://github.com/rust-lang/crates.io-index"
72+
checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
73+
dependencies = [
74+
"proc-macro2",
75+
]
76+
77+
[[package]]
78+
name = "syn"
79+
version = "2.0.71"
80+
source = "registry+https://github.com/rust-lang/crates.io-index"
81+
checksum = "b146dcf730474b4bcd16c311627b31ede9ab149045db4d6088b3becaea046462"
82+
dependencies = [
83+
"proc-macro2",
84+
"quote",
85+
"unicode-ident",
86+
]
87+
88+
[[package]]
89+
name = "unicode-ident"
90+
version = "1.0.12"
91+
source = "registry+https://github.com/rust-lang/crates.io-index"
92+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
93+
5894
[[package]]
5995
name = "version_check"
6096
version = "0.9.4"
6197
source = "registry+https://github.com/rust-lang/crates.io-index"
6298
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
99+
100+
[[package]]
101+
name = "zerocopy"
102+
version = "0.7.35"
103+
source = "registry+https://github.com/rust-lang/crates.io-index"
104+
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
105+
dependencies = [
106+
"zerocopy-derive",
107+
]
108+
109+
[[package]]
110+
name = "zerocopy-derive"
111+
version = "0.7.35"
112+
source = "registry+https://github.com/rust-lang/crates.io-index"
113+
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
114+
dependencies = [
115+
"proc-macro2",
116+
"quote",
117+
"syn",
118+
]

bazel/cargo/remote/BUILD.ahash-0.8.3.bazel renamed to bazel/cargo/remote/BUILD.ahash-0.8.11.bazel

Lines changed: 49 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1111

1212
package(default_visibility = ["//visibility:public"])
1313

14-
# licenses([
15-
# "TODO", # MIT OR Apache-2.0
16-
# ])
17-
1814
rust_library(
1915
name = "ahash",
20-
srcs = glob(["**/*.rs"]),
16+
srcs = glob(
17+
include = ["**/*.rs"],
18+
allow_empty = True,
19+
),
2120
compile_data = glob(
2221
include = ["**"],
22+
allow_empty = True,
2323
exclude = [
2424
"**/* *",
2525
".tmp_git_root/**/*",
@@ -78,118 +78,123 @@ rust_library(
7878
"@rules_rust//rust/platform:x86_64-unknown-none": [],
7979
"//conditions:default": ["@platforms//:incompatible"],
8080
}),
81-
version = "0.8.3",
81+
version = "0.8.11",
8282
deps = [
83-
"@crates_vendor__ahash-0.8.3//:build_script_build",
83+
"@crates_vendor__ahash-0.8.11//:build_script_build",
8484
"@crates_vendor__cfg-if-1.0.0//:cfg_if",
85+
"@crates_vendor__zerocopy-0.7.35//:zerocopy",
8586
] + select({
8687
"@rules_rust//rust/platform:aarch64-apple-darwin": [
87-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
88+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
8889
],
8990
"@rules_rust//rust/platform:aarch64-apple-ios": [
90-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
91+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
9192
],
9293
"@rules_rust//rust/platform:aarch64-apple-ios-sim": [
93-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
94+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
9495
],
9596
"@rules_rust//rust/platform:aarch64-fuchsia": [
96-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
97+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
9798
],
9899
"@rules_rust//rust/platform:aarch64-linux-android": [
99-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
100+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
100101
],
101102
"@rules_rust//rust/platform:aarch64-pc-windows-msvc": [
102-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
103+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
103104
],
104105
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
105-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
106+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
106107
],
107108
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
108-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
109+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
109110
],
110111
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
111-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
112+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
112113
],
113114
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
114-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
115+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
115116
],
116117
"@rules_rust//rust/platform:armv7-linux-androideabi": [
117-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
118+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
118119
],
119120
"@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [
120-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
121+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
121122
],
122123
"@rules_rust//rust/platform:i686-apple-darwin": [
123-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
124+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
124125
],
125126
"@rules_rust//rust/platform:i686-linux-android": [
126-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
127+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
127128
],
128129
"@rules_rust//rust/platform:i686-pc-windows-msvc": [
129-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
130+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
130131
],
131132
"@rules_rust//rust/platform:i686-unknown-freebsd": [
132-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
133+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
133134
],
134135
"@rules_rust//rust/platform:i686-unknown-linux-gnu": [
135-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
136+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
136137
],
137138
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [
138-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
139+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
139140
],
140141
"@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [
141-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
142+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
142143
],
143144
"@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [
144-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
145+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
145146
],
146147
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [
147-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
148+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
148149
],
149150
"@rules_rust//rust/platform:wasm32-unknown-unknown": [
150-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
151+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
151152
],
152153
"@rules_rust//rust/platform:wasm32-wasi": [
153-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
154+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
154155
],
155156
"@rules_rust//rust/platform:x86_64-apple-darwin": [
156-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
157+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
157158
],
158159
"@rules_rust//rust/platform:x86_64-apple-ios": [
159-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
160+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
160161
],
161162
"@rules_rust//rust/platform:x86_64-fuchsia": [
162-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
163+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
163164
],
164165
"@rules_rust//rust/platform:x86_64-linux-android": [
165-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
166+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
166167
],
167168
"@rules_rust//rust/platform:x86_64-pc-windows-msvc": [
168-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
169+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
169170
],
170171
"@rules_rust//rust/platform:x86_64-unknown-freebsd": [
171-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
172+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
172173
],
173174
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
174-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
175+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
175176
],
176177
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
177-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
178+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
178179
],
179180
"@rules_rust//rust/platform:x86_64-unknown-none": [
180-
"@crates_vendor__once_cell-1.18.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
181+
"@crates_vendor__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none")))
181182
],
182183
"//conditions:default": [],
183184
}),
184185
)
185186

186187
cargo_build_script(
187-
name = "ahash_build_script",
188-
srcs = glob(["**/*.rs"]),
188+
name = "_bs",
189+
srcs = glob(
190+
include = ["**/*.rs"],
191+
allow_empty = True,
192+
),
189193
crate_name = "build_script_build",
190194
crate_root = "build.rs",
191195
data = glob(
192196
include = ["**"],
197+
allow_empty = True,
193198
exclude = [
194199
"**/* *",
195200
".tmp_git_root/**/*",
@@ -200,6 +205,7 @@ cargo_build_script(
200205
],
201206
),
202207
edition = "2018",
208+
pkg_name = "ahash",
203209
rustc_flags = [
204210
"--cap-lints=allow",
205211
],
@@ -210,7 +216,7 @@ cargo_build_script(
210216
"noclippy",
211217
"norustfmt",
212218
],
213-
version = "0.8.3",
219+
version = "0.8.11",
214220
visibility = ["//visibility:private"],
215221
deps = [
216222
"@crates_vendor__version_check-0.9.4//:version_check",
@@ -219,6 +225,6 @@ cargo_build_script(
219225

220226
alias(
221227
name = "build_script_build",
222-
actual = ":ahash_build_script",
228+
actual = ":_bs",
223229
tags = ["manual"],
224230
)

bazel/cargo/remote/BUILD.allocator-api2-0.2.14.bazel renamed to bazel/cargo/remote/BUILD.allocator-api2-0.2.18.bazel

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
1010

1111
package(default_visibility = ["//visibility:public"])
1212

13-
# licenses([
14-
# "TODO", # MIT OR Apache-2.0
15-
# ])
16-
1713
rust_library(
1814
name = "allocator_api2",
19-
srcs = glob(["**/*.rs"]),
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = True,
18+
),
2019
compile_data = glob(
2120
include = ["**"],
21+
allow_empty = True,
2222
exclude = [
2323
"**/* *",
2424
".tmp_git_root/**/*",
@@ -80,5 +80,5 @@ rust_library(
8080
"@rules_rust//rust/platform:x86_64-unknown-none": [],
8181
"//conditions:default": ["@platforms//:incompatible"],
8282
}),
83-
version = "0.2.14",
83+
version = "0.2.18",
8484
)

0 commit comments

Comments
 (0)