Skip to content

Commit 31281ed

Browse files
committed
Update rules_rust
Signed-off-by: Keith Mattix II <[email protected]>
1 parent 5753265 commit 31281ed

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

bazel/external/rules_rust.patch

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# https://github.com/bazelbuild/rules_rust/pull/1315
2-
32
diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl
4-
index 6cdbefeb..284d4afa 100644
3+
index bfd96ed9..d7e38658 100644
54
--- a/rust/private/rustc.bzl
65
+++ b/rust/private/rustc.bzl
7-
@@ -1024,7 +1024,7 @@ def rustc_compile_action(
8-
),
9-
]
10-
6+
@@ -1507,7 +1507,7 @@ def rustc_compile_action(
7+
})
8+
crate_info = rust_common.create_crate_info(**crate_info_dict)
9+
1110
- if crate_info.type in ["staticlib", "cdylib"]:
1211
+ if crate_info.type in ["staticlib", "cdylib"] and not out_binary:
1312
# These rules are not supposed to be depended on by other rust targets, and

bazel/repositories.bzl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,19 @@ def proxy_wasm_cpp_host_repositories():
9090
url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz",
9191
)
9292

93+
# Keep at 0.42 one because https://github.com/bazelbuild/rules_rust/issues/2665
94+
# manifests at 0.43
9395
maybe(
9496
http_archive,
9597
name = "rules_rust",
96-
sha256 = "e3fe2a255589d128c5e59e407ee57c832533f25ce14cc23605d368cf507ce08d",
97-
strip_prefix = "rules_rust-0.24.1",
98+
integrity = "sha256-JLN47ZcAbx9wEr5Jiib4HduZATGLiDgK7oUi/fvotzU=",
9899
# NOTE: Update Rust version in bazel/dependencies.bzl.
99-
url = "https://github.com/bazelbuild/rules_rust/archive/0.24.1.tar.gz",
100+
url = "https://github.com/bazelbuild/rules_rust/releases/download/0.42.1/rules_rust-v0.42.1.tar.gz",
100101
patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"],
101102
patch_args = ["-p1"],
102103
)
103104

105+
104106
# Core deps. Keep them updated.
105107

106108
# Note: we depend on Abseil via rules_fuzzing. Remove this pin when we update that.

0 commit comments

Comments
 (0)