Skip to content

Commit e3c662b

Browse files
committed
Bump rules_rust pin & add flycheck binary
1 parent aa29327 commit e3c662b

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

rs/rules_rust.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def _rules_rust_impl(mctx):
3131

3232
http_archive(
3333
name = "rules_rust",
34-
integrity = "sha256-2Omls/gtvOOdKgmcXazTqrCxf5zegAK6JMSRL/3J51c=",
35-
strip_prefix = "rules_rust-f19661ba71f77c993ce1eb082053692610fe4313",
36-
url = "https://github.com/hermeticbuild/rules_rust/archive/f19661ba71f77c993ce1eb082053692610fe4313.tar.gz",
34+
integrity = "sha256-/4Vis8u8k+unS/lMjikRo78WHT2hgnuSphbCqB9JwC4=",
35+
strip_prefix = "rules_rust-a39ce927aa2ad0f78e9fa0ed6f3330c1ae5d652c",
36+
url = "https://github.com/hermeticbuild/rules_rust/archive/a39ce927aa2ad0f78e9fa0ed6f3330c1ae5d652c.tar.gz",
3737
patches = patches,
3838
patch_strip = strip,
3939
)

tools/rust_analyzer/BUILD.bazel

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ rust_binary(
4141
],
4242
)
4343

44+
rust_binary(
45+
name = "flycheck",
46+
srcs = ["@rules_rust//tools/rust_analyzer:bin/flycheck.rs"],
47+
edition = "2021",
48+
deps = [
49+
":gen_rust_project_lib",
50+
"@rrra//:anyhow",
51+
"@rrra//:camino",
52+
"@rrra//:clap",
53+
"@rrra//:env_logger",
54+
"@rrra//:log",
55+
"@rrra//:serde_json",
56+
],
57+
)
58+
4459
rust_binary(
4560
name = "validate",
4661
srcs = ["@rules_rust//tools/rust_analyzer:bin/validate.rs"],
@@ -69,6 +84,7 @@ rust_library(
6984
"@rules_rust//tools/rust_analyzer:cache.rs",
7085
"@rules_rust//tools/rust_analyzer:lib.rs",
7186
"@rules_rust//tools/rust_analyzer:rust_project.rs",
87+
"@rules_rust//tools/rust_analyzer:user_config.rs",
7288
],
7389
compile_data = [
7490
"@rules_rust//rust/private:rust_analyzer_detect_sysroot",

0 commit comments

Comments
 (0)