Skip to content

Commit

Permalink
[rust] Use apple-flat-package crate to extract PKG files (#13740)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
bonigarcia and diemol authored Mar 26, 2024
1 parent 1b06b13 commit 0c81991
Show file tree
Hide file tree
Showing 7 changed files with 7,277 additions and 1,558 deletions.
11 changes: 3 additions & 8 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,15 @@ paket()

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

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

rules_rust_dependencies()

rust_register_toolchains(
edition = "2021",
versions = [
"1.77.0",
],
)
rust_register_toolchains()

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

Expand Down
2 changes: 1 addition & 1 deletion rust/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ rust_library(
rust_test(
name = "unit",
size = "small",
srcs = glob(["src/**/*.rs"]),
crate = ":selenium_manager",
edition = "2021",
tags = ["no-sandbox"],
)

Expand Down
Loading

0 comments on commit 0c81991

Please sign in to comment.