Skip to content

Commit 42b1525

Browse files
committed
deps: update rules_foreign_cc to 0.15.1 for Python 3.13 compatibility
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 2b33b48 commit 42b1525

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

WORKSPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "proxy_wasm_cpp_host_depend
88

99
proxy_wasm_cpp_host_dependencies()
1010

11+
load("@proxy_wasm_cpp_host//bazel:setup_features.bzl", "setup_bazel_features")
12+
13+
setup_bazel_features()
14+
1115
load("@proxy_wasm_cpp_host//bazel:dependencies_python.bzl", "proxy_wasm_cpp_host_dependencies_python")
1216

1317
proxy_wasm_cpp_host_dependencies_python()

bazel/dependencies.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def proxy_wasm_cpp_host_dependencies():
4141
"wasm32-unknown-unknown",
4242
"wasm32-wasi", # TODO: Change to wasm32-wasip1 once https://github.com/bazelbuild/rules_rust/issues/2782 is fixed
4343
],
44-
version = "1.77.2",
44+
versions = ["1.77.2"],
4545
)
4646
rust_repository_set(
4747
name = "rust_linux_s390x",
@@ -50,7 +50,7 @@ def proxy_wasm_cpp_host_dependencies():
5050
"wasm32-unknown-unknown",
5151
"wasm32-wasi",
5252
],
53-
version = "1.77.2",
53+
versions = ["1.77.2"],
5454
)
5555
crate_universe_dependencies(bootstrap = True)
5656

bazel/repositories.bzl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1919
def proxy_wasm_cpp_host_repositories():
2020
# Bazel extensions.
2121

22+
maybe(
23+
http_archive,
24+
name = "bazel_features",
25+
sha256 = "af3d4fb1cf4f25942cb4a933b1ad93a0ea9fe9ee70c2af7f369fb72a67c266e5",
26+
strip_prefix = "bazel_features-1.21.0",
27+
urls = ["https://github.com/bazel-contrib/bazel_features/releases/download/v1.21.0/bazel_features-v1.21.0.tar.gz"],
28+
)
29+
2230
# Update platforms for crate_universe. Can remove when we update Bazel version.
2331
maybe(
2432
http_archive,
@@ -77,9 +85,9 @@ def proxy_wasm_cpp_host_repositories():
7785
maybe(
7886
http_archive,
7987
name = "rules_foreign_cc",
80-
sha256 = "bcd0c5f46a49b85b384906daae41d277b3dc0ff27c7c752cc51e43048a58ec83",
81-
strip_prefix = "rules_foreign_cc-0.7.1",
82-
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz",
88+
sha256 = "32759728913c376ba45b0116869b71b68b1c2ebf8f2bcf7b41222bc07b773d73",
89+
strip_prefix = "rules_foreign_cc-0.15.1",
90+
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.15.1.tar.gz",
8391
)
8492

8593
maybe(
@@ -180,7 +188,7 @@ def proxy_wasm_cpp_host_repositories():
180188
# 13.8.258.26
181189
commit = "de9d0f8b56ae61896e4d2ac577fc589efb14f87d",
182190
remote = "https://chromium.googlesource.com/v8/v8",
183-
shallow_since = "1752074621 -0400",
191+
shallow_since = "1752074621 -0700",
184192
patches = [
185193
"@proxy_wasm_cpp_host//bazel/external:v8.patch",
186194
],

bazel/setup_features.bzl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""Setup bazel_features internal repositories."""
16+
17+
load("@bazel_features//private:repos.bzl", "bazel_features_repos")
18+
19+
def setup_bazel_features():
20+
"""Initialize bazel_features internal repos (needed for WORKSPACE compat)."""
21+
bazel_features_repos()

0 commit comments

Comments
 (0)