Skip to content

Commit 0c81991

Browse files
bonigarciadiemol
andauthored
[rust] Use apple-flat-package crate to extract PKG files (#13740)
* [rust] Use apple-flat-package crate to extract PKG files * [rust] Bump rules_rust to v0.40.0 * [rust] Remove version from toolchain register * [rust] Remove crate in unit test config * [rust] Remove srcs from run test setup * [rust] Include edition in rust test block --------- Co-authored-by: Diego Molina <[email protected]>
1 parent 1b06b13 commit 0c81991

File tree

7 files changed

+7277
-1558
lines changed

7 files changed

+7277
-1558
lines changed

WORKSPACE

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,20 +231,15 @@ paket()
231231

232232
http_archive(
233233
name = "rules_rust",
234-
sha256 = "50ec4b84a7ec5370f5882d52f4a1e6b8a75de2f8dcc0a4403747b69b2c4ef5b1",
235-
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.23.0/rules_rust-v0.23.0.tar.gz"],
234+
integrity = "sha256-ww398ehv1QZQp26mRbOkXy8AZnsGGHpoXpVU4WfKl+4=",
235+
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/0.40.0/rules_rust-v0.40.0.tar.gz"],
236236
)
237237

238238
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
239239

240240
rules_rust_dependencies()
241241

242-
rust_register_toolchains(
243-
edition = "2021",
244-
versions = [
245-
"1.77.0",
246-
],
247-
)
242+
rust_register_toolchains()
248243

249244
load("@rules_rust//crate_universe:defs.bzl", "crates_repository")
250245

rust/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ rust_library(
9898
rust_test(
9999
name = "unit",
100100
size = "small",
101-
srcs = glob(["src/**/*.rs"]),
102101
crate = ":selenium_manager",
102+
edition = "2021",
103103
tags = ["no-sandbox"],
104104
)
105105

0 commit comments

Comments
 (0)