Skip to content

Commit 40d49e7

Browse files
committed
Consolidate into single binary
1 parent 9090abb commit 40d49e7

2 files changed

Lines changed: 1 addition & 157 deletions

File tree

tools/rust_analyzer/BUILD.bazel

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ package(default_visibility = ["//visibility:public"])
77
rust_binary(
88
name = "discover_bazel_rust_project",
99
srcs = ["@rules_rust//tools/rust_analyzer:bin/discover_rust_project.rs"],
10-
data = [":flycheck"],
1110
edition = "2018",
1211
rustc_env = {
1312
"ASPECT_REPOSITORY": aspect_repository(),
14-
"FLYCHECK_RLOCATIONPATH": "$(rlocationpath :flycheck)",
1513
},
1614
deps = [
1715
":gen_rust_project_lib",
@@ -21,29 +19,15 @@ rust_binary(
2119
"@rrra//:env_logger",
2220
"@rrra//:log",
2321
"@rrra//:serde_json",
24-
"@rules_rust//rust/runfiles",
25-
],
26-
)
27-
28-
rust_binary(
29-
name = "flycheck",
30-
srcs = ["flycheck.rs"],
31-
edition = "2021",
32-
deps = [
33-
"@rrra//:clap",
34-
"@rrra//:serde",
35-
"@rrra//:serde_json",
3622
],
3723
)
3824

3925
rust_binary(
4026
name = "gen_rust_project",
4127
srcs = ["@rules_rust//tools/rust_analyzer:bin/gen_rust_project.rs"],
42-
data = [":flycheck"],
4328
edition = "2018",
4429
rustc_env = {
4530
"ASPECT_REPOSITORY": aspect_repository(),
46-
"FLYCHECK_RLOCATIONPATH": "$(rlocationpath :flycheck)",
4731
},
4832
deps = [
4933
":gen_rust_project_lib",
@@ -53,7 +37,6 @@ rust_binary(
5337
"@rrra//:env_logger",
5438
"@rrra//:log",
5539
"@rrra//:serde_json",
56-
"@rules_rust//rust/runfiles",
5740
],
5841
)
5942

@@ -80,6 +63,7 @@ rust_library(
8063
name = "gen_rust_project_lib",
8164
srcs = [
8265
"@rules_rust//tools/rust_analyzer:aquery.rs",
66+
"@rules_rust//tools/rust_analyzer:flycheck.rs",
8367
"@rules_rust//tools/rust_analyzer:lib.rs",
8468
"@rules_rust//tools/rust_analyzer:rust_project.rs",
8569
],

tools/rust_analyzer/flycheck.rs

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)