Skip to content

Commit 267b90d

Browse files
authored
Merge pull request #1040 from dtolnay/bazel
Pull in my landed edition-related PRs from Bazel rules_rust
2 parents f9f215f + e31ca99 commit 267b90d

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

WORKSPACE

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

55
http_archive(
66
name = "rules_rust",
7-
sha256 = "29954bced3e0d1a57ff8db816f5cd8a5856179fc657455729f1eb53b39611419",
8-
strip_prefix = "rules_rust-6e1cbbfcd0d140baacc8ff1080f885d2a45296a9",
7+
sha256 = "d39af65fc3b88c204e101d4ddc7dd7543be4e2509fa21c35a5d228f54821a2a9",
8+
strip_prefix = "rules_rust-f7cb22efa64a6a07813e30e9f9d70d1fd18e463e",
99
urls = [
10-
# PR https://github.com/bazelbuild/rules_rust/pull/1254
11-
# on top of the main branch as of 2022-04-10
12-
"https://github.com/bazelbuild/rules_rust/archive/6e1cbbfcd0d140baacc8ff1080f885d2a45296a9.tar.gz",
10+
# Main branch as of 2022-04-25
11+
"https://github.com/bazelbuild/rules_rust/archive/f7cb22efa64a6a07813e30e9f9d70d1fd18e463e.tar.gz",
1312
],
1413
)
1514

@@ -18,7 +17,6 @@ load("@rules_rust//rust:repositories.bzl", "rust_repositories")
1817
RUST_VERSION = "1.60.0"
1918

2019
rust_repositories(
21-
edition = "required",
2220
version = RUST_VERSION,
2321
)
2422

tools/bazel/third_party.bzl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ load("@third-party//:vendor.bzl", "vendored")
55
def third_party_glob(include):
66
return vendored and native.glob(include)
77

8-
def third_party_cargo_build_script(edition, rustc_flags = [], **kwargs):
8+
def third_party_cargo_build_script(rustc_flags = [], **kwargs):
99
rustc_flags = rustc_flags + ["--cap-lints=allow"]
10-
cargo_build_script(edition = edition, rustc_flags = rustc_flags, **kwargs)
10+
cargo_build_script(rustc_flags = rustc_flags, **kwargs)
1111

12-
def third_party_rust_binary(edition, rustc_flags = [], **kwargs):
12+
def third_party_rust_binary(rustc_flags = [], **kwargs):
1313
rustc_flags = rustc_flags + ["--cap-lints=allow"]
14-
rust_binary(edition = edition, rustc_flags = rustc_flags, **kwargs)
14+
rust_binary(rustc_flags = rustc_flags, **kwargs)
1515

16-
def third_party_rust_library(edition, rustc_flags = [], **kwargs):
16+
def third_party_rust_library(rustc_flags = [], **kwargs):
1717
rustc_flags = rustc_flags + ["--cap-lints=allow"]
18-
rust_library(edition = edition, rustc_flags = rustc_flags, **kwargs)
18+
rust_library(rustc_flags = rustc_flags, **kwargs)

0 commit comments

Comments
 (0)