Skip to content

Commit 1f2e623

Browse files
authored
Set edition for process_wrapper and cargo_build_script_runner (#1254)
These otherwise get built with the downstream repo's default edition, which is not necessarily correct.
1 parent 5579049 commit 1f2e623

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cargo/cargo_build_script_runner/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ load("//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
33
rust_library(
44
name = "cargo_build_script_output_parser",
55
srcs = ["lib.rs"],
6+
edition = "2018",
67
)
78

89
rust_test(
910
name = "test",
1011
crate = ":cargo_build_script_output_parser",
12+
edition = "2018",
1113
)
1214

1315
rust_binary(
1416
name = "cargo_build_script_runner",
1517
srcs = ["bin.rs"],
18+
edition = "2018",
1619
visibility = ["//visibility:public"],
1720
deps = [":cargo_build_script_output_parser"],
1821
)
1922

2023
rust_test(
2124
name = "bin_test",
2225
crate = ":cargo_build_script_runner",
26+
edition = "2018",
2327
deps = [":cargo_build_script_runner"],
2428
)
2529

util/process_wrapper/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ load("//rust/private:rust.bzl", "rust_binary_without_process_wrapper")
66
rust_binary_without_process_wrapper(
77
name = "process_wrapper",
88
srcs = glob(["*.rs"]),
9+
edition = "2018",
910
visibility = ["//visibility:public"],
1011
)
1112

1213
rust_test(
1314
name = "process_wrapper_test",
1415
crate = ":process_wrapper",
16+
edition = "2018",
1517
)
1618

1719
filegroup(

0 commit comments

Comments
 (0)