Skip to content

Commit

Permalink
Update rules_rust to v0.53.0 (with Rust v1.81.0). (#275)
Browse files Browse the repository at this point in the history
While there, expand buildifier's coverage to include generated
BUILD files, since they're correctly formatted nowadays.

Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora authored Oct 27, 2024
1 parent a0a2173 commit 434cdd5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ jobs:
run: |
go install github.com/bazelbuild/buildtools/buildifier@latest
export PATH=$PATH:$(go env GOPATH)/bin
buildifier -mode=check WORKSPACE
buildifier -mode=check BUILD
buildifier -mode=check -r .
- name: Format (rules_rust)
run: |
Expand Down
1 change: 0 additions & 1 deletion bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

2 changes: 1 addition & 1 deletion bazel/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

load("@proxy_wasm_rust_sdk//bazel/cargo/remote:defs.bzl", "crate_repositories")
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
load("@rules_rust//rust:repositories.bzl", "rust_repositories")

def proxy_wasm_rust_sdk_dependencies():
rust_repositories()
Expand Down
4 changes: 2 additions & 2 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def proxy_wasm_rust_sdk_repositories():
maybe(
http_archive,
name = "rules_rust",
sha256 = "df973075339aaaabb8cbe697808514d82d8f00a333e3ebb227bfd4308182985b",
url = "https://github.com/bazelbuild/rules_rust/releases/download/0.47.1/rules_rust-v0.47.1.tar.gz",
sha256 = "85e2013727ab26fb22abdffe4b2ac0c27a2d5b6296167ba63d8f6e13140f51f9",
url = "https://github.com/bazelbuild/rules_rust/releases/download/0.53.0/rules_rust-v0.53.0.tar.gz",
patches = ["//bazel:rules_rust.patch"],
patch_args = ["-p1"],
)
Expand Down
4 changes: 2 additions & 2 deletions bazel/rules_rust.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# https://github.com/bazelbuild/rules_rust/pull/1315

diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl
index eff542eb..9efe645c 100644
index 20a09f94..53122967 100644
--- a/rust/private/rustc.bzl
+++ b/rust/private/rustc.bzl
@@ -1467,7 +1467,7 @@ def rustc_compile_action(
@@ -1518,7 +1518,7 @@ def rustc_compile_action(
})
crate_info = rust_common.create_crate_info(**crate_info_dict)

Expand Down

0 comments on commit 434cdd5

Please sign in to comment.