Skip to content

Commit b6c9468

Browse files
authored
Added cargo_manifest_dir submodule to cargo_build_script_runner. (#3161)
This change aims to isolate some of the newer, more complicated parts of `cargo_build_script_runner`.
1 parent b53f9a8 commit b6c9468

File tree

5 files changed

+459
-441
lines changed

5 files changed

+459
-441
lines changed
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
load("//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
22

33
rust_library(
4-
name = "cargo_build_script_output_parser",
5-
srcs = ["lib.rs"],
4+
name = "cargo_build_script_runner",
5+
srcs = [
6+
"cargo_manifest_dir.rs",
7+
"lib.rs",
8+
],
69
edition = "2018",
710
)
811

912
rust_test(
1013
name = "test",
11-
crate = ":cargo_build_script_output_parser",
14+
crate = ":cargo_build_script_runner",
1215
edition = "2018",
1316
)
1417

1518
rust_binary(
16-
name = "cargo_build_script_runner",
19+
name = "runner",
1720
srcs = ["bin.rs"],
1821
edition = "2018",
1922
visibility = ["//visibility:public"],
20-
deps = [":cargo_build_script_output_parser"],
23+
deps = [":cargo_build_script_runner"],
2124
)
2225

2326
rust_test(
2427
name = "bin_test",
25-
crate = ":cargo_build_script_runner",
28+
crate = ":runner",
2629
edition = "2018",
27-
deps = [":cargo_build_script_runner"],
2830
)

0 commit comments

Comments
 (0)