Skip to content

Commit 434cdd5

Browse files
authored
Update rules_rust to v0.53.0 (with Rust v1.81.0). (#275)
While there, expand buildifier's coverage to include generated BUILD files, since they're correctly formatted nowadays. Signed-off-by: Piotr Sikora <[email protected]>
1 parent a0a2173 commit 434cdd5

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ jobs:
8080
run: |
8181
go install github.com/bazelbuild/buildtools/buildifier@latest
8282
export PATH=$PATH:$(go env GOPATH)/bin
83-
buildifier -mode=check WORKSPACE
84-
buildifier -mode=check BUILD
83+
buildifier -mode=check -r .
8584
8685
- name: Format (rules_rust)
8786
run: |

bazel/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-

bazel/dependencies.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
load("@proxy_wasm_rust_sdk//bazel/cargo/remote:defs.bzl", "crate_repositories")
16-
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
1716
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
17+
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
1818

1919
def proxy_wasm_rust_sdk_dependencies():
2020
rust_repositories()

bazel/repositories.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def proxy_wasm_rust_sdk_repositories():
2626
maybe(
2727
http_archive,
2828
name = "rules_rust",
29-
sha256 = "df973075339aaaabb8cbe697808514d82d8f00a333e3ebb227bfd4308182985b",
30-
url = "https://github.com/bazelbuild/rules_rust/releases/download/0.47.1/rules_rust-v0.47.1.tar.gz",
29+
sha256 = "85e2013727ab26fb22abdffe4b2ac0c27a2d5b6296167ba63d8f6e13140f51f9",
30+
url = "https://github.com/bazelbuild/rules_rust/releases/download/0.53.0/rules_rust-v0.53.0.tar.gz",
3131
patches = ["//bazel:rules_rust.patch"],
3232
patch_args = ["-p1"],
3333
)

bazel/rules_rust.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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 eff542eb..9efe645c 100644
4+
index 20a09f94..53122967 100644
55
--- a/rust/private/rustc.bzl
66
+++ b/rust/private/rustc.bzl
7-
@@ -1467,7 +1467,7 @@ def rustc_compile_action(
7+
@@ -1518,7 +1518,7 @@ def rustc_compile_action(
88
})
99
crate_info = rust_common.create_crate_info(**crate_info_dict)
1010

0 commit comments

Comments
 (0)