Skip to content

Commit c4038cc

Browse files
authored
Update rules_cc to v0.2.14. (#337)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 8296df3 commit c4038cc

File tree

5 files changed

+58
-6
lines changed

5 files changed

+58
-6
lines changed

WORKSPACE

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ load("@proxy_wasm_rust_sdk//bazel:repositories.bzl", "proxy_wasm_rust_sdk_reposi
44

55
proxy_wasm_rust_sdk_repositories()
66

7-
load("@proxy_wasm_rust_sdk//bazel:dependencies.bzl", "proxy_wasm_rust_sdk_dependencies")
7+
load("@proxy_wasm_rust_sdk//bazel:dependencies_bazel.bzl", "proxy_wasm_rust_sdk_dependencies_bazel")
88

9-
proxy_wasm_rust_sdk_dependencies()
9+
proxy_wasm_rust_sdk_dependencies_bazel()
10+
11+
load("@proxy_wasm_rust_sdk//bazel:dependencies_compat.bzl", "proxy_wasm_rust_sdk_dependencies_compat")
12+
13+
proxy_wasm_rust_sdk_dependencies_compat()
14+
15+
load("@proxy_wasm_rust_sdk//bazel:dependencies_crates.bzl", "proxy_wasm_rust_sdk_dependencies_crates")
16+
17+
proxy_wasm_rust_sdk_dependencies_crates()

bazel/dependencies_bazel.bzl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
load("@bazel_features//:deps.bzl", "bazel_features_deps")
16+
17+
def proxy_wasm_rust_sdk_dependencies_bazel():
18+
bazel_features_deps()

bazel/dependencies_compat.bzl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
16+
17+
def proxy_wasm_rust_sdk_dependencies_compat():
18+
compatibility_proxy_repo()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ load("@proxy_wasm_rust_sdk//bazel/cargo/remote:defs.bzl", "crate_repositories")
1616
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
1717
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
1818

19-
def proxy_wasm_rust_sdk_dependencies():
19+
def proxy_wasm_rust_sdk_dependencies_crates():
2020
rust_repositories()
2121
crate_universe_dependencies()
2222
crate_repositories()

bazel/repositories.bzl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,20 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1616
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
1717

1818
def proxy_wasm_rust_sdk_repositories():
19+
maybe(
20+
http_archive,
21+
name = "bazel_features",
22+
sha256 = "07271d0f6b12633777b69020c4cb1eb67b1939c0cf84bb3944dc85cc250c0c01",
23+
url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.38.0/bazel_features-v1.38.0.tar.gz",
24+
strip_prefix = "bazel_features-1.38.0",
25+
)
26+
1927
maybe(
2028
http_archive,
2129
name = "rules_cc",
22-
sha256 = "4b12149a041ddfb8306a8fd0e904e39d673552ce82e4296e96fac9cbf0780e59",
23-
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.1.0/rules_cc-0.1.0.tar.gz",
24-
strip_prefix = "rules_cc-0.1.0",
30+
sha256 = "a2fdfde2ab9b2176bd6a33afca14458039023edb1dd2e73e6823810809df4027",
31+
url = "https://github.com/bazelbuild/rules_cc/releases/download/0.2.14/rules_cc-0.2.14.tar.gz",
32+
strip_prefix = "rules_cc-0.2.14",
2533
)
2634

2735
maybe(

0 commit comments

Comments
 (0)