From f7d405537c485b530bf51b3bd10f971e6478f128 Mon Sep 17 00:00:00 2001 From: David Freese Date: Fri, 5 Nov 2021 12:44:35 -0700 Subject: [PATCH] Update to a more recent rules rust and update to use defs.bzl Rules rust has made some changes upstream that remove the rust.bzl file. It had previously been left in there for compatibility purposes. This has been ongoing since February 16th. See this issue for additional context: https://github.com/bazelbuild/rules_rust/issues/591. --- WORKSPACE | 8 ++++---- rust/image.bzl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 07a3919f1..40f62f1dc 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -333,11 +333,11 @@ _go_image_repos() # For our rust_image test http_archive( name = "rules_rust", - sha256 = "42e60f81e2b269d28334b73b70d02fb516c8de0c16242f5d376bfe6d94a3509f", - strip_prefix = "rules_rust-58f709ffec90da93c4e622d8d94f0cd55cd2ef54", + sha256 = "d6a8bc37502f252ef190b37945c922e0d0104dc2250940a3ea5f9c42e7a0dc10", + strip_prefix = "rules_rust-e2f0fccda912daac686b533ad77c5bc5d2f2ddb7", urls = [ - # Master branch as of 2021-02-04 - "https://github.com/bazelbuild/rules_rust/archive/58f709ffec90da93c4e622d8d94f0cd55cd2ef54.tar.gz", + # Master branch as of 2021-11-05 + "https://github.com/bazelbuild/rules_rust/archive/e2f0fccda912daac686b533ad77c5bc5d2f2ddb7.tar.gz", ], ) diff --git a/rust/image.bzl b/rust/image.bzl index f1142ad42..3367b2d62 100644 --- a/rust/image.bzl +++ b/rust/image.bzl @@ -16,7 +16,7 @@ The signature of this rule is compatible with rust_binary. """ -load("@rules_rust//rust:rust.bzl", "rust_binary") +load("@rules_rust//rust:defs.bzl", "rust_binary") load( "//cc:image.bzl", "DEFAULT_BASE",