Skip to content

Commit d756f4a

Browse files
committed
[build] Update to Bazel 7.6.0, clean up workerd_capnp usage
1 parent b12c6cf commit d756f4a

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0
1+
7.6.0

src/workerd/api/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ wd_cc_library(
9595
"modules.h",
9696
"rtti.h",
9797
"//src/pyodide:generated/pyodide_extra.capnp.h",
98-
"//src/workerd/server:workerd.capnp.h",
9998
],
10099
visibility = ["//visibility:public"],
101100
deps = [
@@ -111,7 +110,6 @@ wd_cc_library(
111110
"//src/workerd/api/node",
112111
"//src/workerd/io",
113112
"//src/workerd/jsg:rtti",
114-
"//src/workerd/server:workerd_capnp",
115113
],
116114
)
117115

src/workerd/server/BUILD.bazel

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,18 @@ wd_cc_library(
146146
],
147147
)
148148

149-
wd_capnp_library(src = "workerd.capnp")
149+
wd_capnp_library(
150+
src = "workerd.capnp",
151+
# Limit visibility to avoid accidental usage – there should be no need to use this outside of
152+
# test-fixture and the workerd binary.
153+
# TODO(cleanup): Resolve exception for api/pyodide by moving affected pyodide code into server
154+
# target. This will allow downstream to not depend on workerd.capnp.
155+
visibility = [
156+
":__pkg__",
157+
"//src/workerd/api:__pkg__",
158+
"//src/workerd/tests:__pkg__",
159+
],
160+
)
150161

151162
wd_capnp_library(
152163
src = "workerd-meta.capnp",

0 commit comments

Comments
 (0)