@@ -3,7 +3,10 @@ workspace(name = "com_google_protobuf")
3
3
# An explicit self-reference to work around changes in Bazel 7.0
4
4
# See https://github.com/bazelbuild/bazel/issues/19973#issuecomment-1787814450
5
5
# buildifier: disable=duplicated-name
6
- local_repository (name = "com_google_protobuf" , path = "." )
6
+ local_repository (
7
+ name = "com_google_protobuf" ,
8
+ path = "." ,
9
+ )
7
10
8
11
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
9
12
@@ -17,6 +20,10 @@ load("//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS", "protobuf_deps")
17
20
18
21
protobuf_deps ()
19
22
23
+ load ("//:protobuf_extra_deps.bzl" , "protobuf_extra_deps" )
24
+
25
+ protobuf_extra_deps ()
26
+
20
27
load ("@rules_python//python:repositories.bzl" , "py_repositories" )
21
28
22
29
py_repositories ()
@@ -28,19 +35,19 @@ pip_install_dependencies()
28
35
# Bazel platform rules.
29
36
http_archive (
30
37
name = "platforms" ,
38
+ sha256 = "3a561c99e7bdbe9173aa653fd579fe849f1d8d67395780ab4770b1f381431d51" ,
31
39
urls = [
32
40
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" ,
33
41
"https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" ,
34
42
],
35
- sha256 = "3a561c99e7bdbe9173aa653fd579fe849f1d8d67395780ab4770b1f381431d51" ,
36
43
)
37
44
38
45
http_archive (
39
46
name = "com_google_googletest" ,
40
47
sha256 = "7315acb6bf10e99f332c8a43f00d5fbb1ee6ca48c52f6b936991b216c586aaad" ,
41
48
strip_prefix = "googletest-1.15.0" ,
42
49
urls = [
43
- "https://github.com/google/googletest/releases/download/v1.15.0/googletest-1.15.0.tar.gz" # 2024-07-15
50
+ "https://github.com/google/googletest/releases/download/v1.15.0/googletest-1.15.0.tar.gz" , # 2024-07-15
44
51
],
45
52
)
46
53
@@ -91,12 +98,6 @@ load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependen
91
98
92
99
apple_support_dependencies ()
93
100
94
- load ("@rules_java//java:repositories.bzl" , "rules_java_dependencies" , "rules_java_toolchains" )
95
-
96
- rules_java_dependencies ()
97
-
98
- rules_java_toolchains ()
99
-
100
101
load ("@rules_cc//cc:repositories.bzl" , "rules_cc_dependencies" )
101
102
102
103
rules_cc_dependencies ()
@@ -112,11 +113,11 @@ kt_register_toolchains()
112
113
113
114
http_archive (
114
115
name = "rules_ruby" ,
116
+ integrity = "sha256-Lh/xxR6WsKJnS92sYkpJDBtdS6DNrCbi0kuUxBffG6E=" ,
117
+ strip_prefix = "rules_ruby-588d9dd40487277e2560ece09fe310d7c0ecb4a6" ,
115
118
urls = [
116
- "https://github.com/protocolbuffers/rules_ruby/archive/588d9dd40487277e2560ece09fe310d7c0ecb4a6.zip"
119
+ "https://github.com/protocolbuffers/rules_ruby/archive/588d9dd40487277e2560ece09fe310d7c0ecb4a6.zip" ,
117
120
],
118
- strip_prefix = "rules_ruby-588d9dd40487277e2560ece09fe310d7c0ecb4a6" ,
119
- integrity = "sha256-Lh/xxR6WsKJnS92sYkpJDBtdS6DNrCbi0kuUxBffG6E=" ,
120
121
)
121
122
122
123
load ("@rules_ruby//ruby:defs.bzl" , "ruby_runtime" )
@@ -157,18 +158,18 @@ http_archive(
157
158
158
159
http_archive (
159
160
name = "com_github_google_benchmark" ,
160
- urls = ["https://github.com/google/benchmark/archive/0baacde3618ca617da95375e0af13ce1baadea47.zip" ],
161
- strip_prefix = "benchmark-0baacde3618ca617da95375e0af13ce1baadea47" ,
162
161
sha256 = "62e2f2e6d8a744d67e4bbc212fcfd06647080de4253c97ad5c6749e09faf2cb0" ,
162
+ strip_prefix = "benchmark-0baacde3618ca617da95375e0af13ce1baadea47" ,
163
+ urls = ["https://github.com/google/benchmark/archive/0baacde3618ca617da95375e0af13ce1baadea47.zip" ],
163
164
)
164
165
165
166
http_archive (
166
167
name = "com_google_googleapis" ,
167
- urls = ["https://github.com/googleapis/googleapis/archive/d81d0b9e6993d6ab425dff4d7c3d05fb2e59fa57.zip" ],
168
- strip_prefix = "googleapis-d81d0b9e6993d6ab425dff4d7c3d05fb2e59fa57" ,
169
- sha256 = "d986023c3d8d2e1b161e9361366669cac9fb97c2a07e656c2548aca389248bb4" ,
170
168
build_file = "//benchmarks:BUILD.googleapis" ,
171
169
patch_cmds = ["find google -type f -name BUILD.bazel -delete" ],
170
+ sha256 = "d986023c3d8d2e1b161e9361366669cac9fb97c2a07e656c2548aca389248bb4" ,
171
+ strip_prefix = "googleapis-d81d0b9e6993d6ab425dff4d7c3d05fb2e59fa57" ,
172
+ urls = ["https://github.com/googleapis/googleapis/archive/d81d0b9e6993d6ab425dff4d7c3d05fb2e59fa57.zip" ],
172
173
)
173
174
174
175
load ("@system_python//:pip.bzl" , "pip_parse" )
@@ -184,11 +185,11 @@ install_deps()
184
185
185
186
http_archive (
186
187
name = "rules_fuzzing" ,
188
+ patch_args = ["-p1" ],
189
+ patches = ["//third_party:rules_fuzzing.patch" ],
187
190
sha256 = "77206c54b71f4dd5335123a6ff2a8ea688eca5378d34b4838114dff71652cf26" ,
188
191
strip_prefix = "rules_fuzzing-0.5.1" ,
189
192
urls = ["https://github.com/bazelbuild/rules_fuzzing/releases/download/v0.5.1/rules_fuzzing-0.5.1.zip" ],
190
- patches = ["//third_party:rules_fuzzing.patch" ],
191
- patch_args = ["-p1" ],
192
193
)
193
194
194
195
load ("@rules_fuzzing//fuzzing:repositories.bzl" , "rules_fuzzing_dependencies" )
@@ -214,7 +215,9 @@ load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_regi
214
215
rules_rust_dependencies ()
215
216
216
217
rust_register_toolchains (edition = "2021" )
218
+
217
219
load ("@rules_rust//crate_universe:defs.bzl" , "crate" , "crates_repository" )
220
+
218
221
# to repin, invoke `CARGO_BAZEL_REPIN=1 bazel sync --only=crate_index`
219
222
crates_repository (
220
223
name = "crate_index" ,
@@ -226,12 +229,13 @@ crates_repository(
226
229
rev = "b407f3b5774defb8917d714bfb7af485e117d621" ,
227
230
),
228
231
"paste" : crate .spec (
229
- version = ">=1" ,
232
+ version = ">=1" ,
230
233
),
231
234
},
232
235
)
233
236
234
237
load ("@crate_index//:defs.bzl" , "crate_repositories" )
238
+
235
239
crate_repositories ()
236
240
237
241
# For testing runtime against old gencode from a previous major version.
@@ -242,11 +246,10 @@ http_archive(
242
246
)
243
247
244
248
# Needed as a dependency of @com_google_protobuf_v25.0
245
- load ("@com_google_protobuf_v25.0//:protobuf_deps.bzl" , protobuf_v25_deps = "protobuf_deps" )
249
+ load ("@com_google_protobuf_v25.0//:protobuf_deps.bzl" , protobuf_v25_deps = "protobuf_deps" )
250
+
246
251
protobuf_v25_deps ()
247
252
248
- # Needed for testing only
249
- load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
250
253
http_archive (
251
254
name = "rules_testing" ,
252
255
sha256 = "02c62574631876a4e3b02a1820cb51167bb9cdcdea2381b2fa9d9b8b11c407c4" ,
0 commit comments