Skip to content

Commit 568f2ac

Browse files
committed
Update rules_rust to v0.40.0 (with Rust v1.76.0)
Signed-off-by: Ryan Northey <[email protected]>
1 parent 9be9637 commit 568f2ac

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Diff for: .github/workflows/format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- uses: actions/checkout@v2
8888

8989
- name: Install dependencies
90-
run: cargo install cargo-raze --version 0.14.1
90+
run: cargo install cargo-raze --version 0.16.1
9191

9292
- name: Format (bazel query)
9393
run: |

Diff for: bazel/dependencies.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def proxy_wasm_cpp_host_dependencies():
3939
"wasm32-unknown-unknown",
4040
"wasm32-wasi",
4141
],
42-
version = "1.68.0",
42+
version = "1.76.0",
4343
)
4444
rust_repository_set(
4545
name = "rust_linux_s390x",
@@ -48,7 +48,7 @@ def proxy_wasm_cpp_host_dependencies():
4848
"wasm32-unknown-unknown",
4949
"wasm32-wasi",
5050
],
51-
version = "1.68.0",
51+
version = "1.76.0",
5252
)
5353

5454
zig_register_toolchains(

Diff for: bazel/external/rules_rust.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# https://github.com/bazelbuild/rules_rust/pull/1315
22

33
diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl
4-
index 6cdbefeb..284d4afa 100644
4+
index e1012230..9dadfd15 100644
55
--- a/rust/private/rustc.bzl
66
+++ b/rust/private/rustc.bzl
7-
@@ -1024,7 +1024,7 @@ def rustc_compile_action(
8-
),
9-
]
10-
7+
@@ -1481,2 +1481,2 @@ def rustc_compile_action(
8+
})
9+
crate_info = rust_common.create_crate_info(**crate_info_dict)
10+
1111
- if crate_info.type in ["staticlib", "cdylib"]:
1212
+ if crate_info.type in ["staticlib", "cdylib"] and not out_binary:
1313
# These rules are not supposed to be depended on by other rust targets, and

Diff for: bazel/repositories.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ def proxy_wasm_cpp_host_repositories():
7474
maybe(
7575
http_archive,
7676
name = "rules_rust",
77-
sha256 = "e3fe2a255589d128c5e59e407ee57c832533f25ce14cc23605d368cf507ce08d",
78-
strip_prefix = "rules_rust-0.24.1",
77+
sha256 = "1e6e8ea8675bd8e19ecca7996dca75c40b3e75a9ca208cfd12c1ca9a3554a6d8",
78+
strip_prefix = "rules_rust-0.40.0",
7979
# NOTE: Update Rust version in bazel/dependencies.bzl.
80-
url = "https://github.com/bazelbuild/rules_rust/archive/0.24.1.tar.gz",
80+
url = "https://github.com/bazelbuild/rules_rust/archive/0.40.0.tar.gz",
8181
patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"],
8282
patch_args = ["-p1"],
8383
)

0 commit comments

Comments
 (0)