Skip to content

Commit 41176a2

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 41176a2

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
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/repositories.bzl

Lines changed: 11 additions & 3 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 = "07271d0f6b12633777b69020c4cb1eb67b1939c0cf84bb3944dc85cc250c0c01",
26+
strip_prefix = "bazel_features-1.38.0",
27+
urls = ["https://github.com/bazel-contrib/bazel_features/releases/download/v1.38.0/bazel_features-v1.38.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(

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)