Skip to content

Commit

Permalink
build: update rules_rulst 0.49.3 -> 0.54.1
Browse files Browse the repository at this point in the history
It started for me with seeing that rust_analyzer LSP does not highlight
`use prost::Message;` in bazel.rs. Actually looks like the
`@crates//:prost` dependency was not specified explicitly, and new
version of `rules_rust` catches this issue.

Build fails with below message otherwise in new `rules_rust` version if
prost is not explicitly mentioned in deps:

```
error[E0432]: unresolved import `prost`
  --> src/bazel.rs:37:5
   |
37 | use prost::Message;
   |     ^^^^^ use of undeclared crate or module `prost`
```
  • Loading branch information
hauserx committed Nov 17, 2024
1 parent 8dec0ba commit c0cdc98
Show file tree
Hide file tree
Showing 3 changed files with 3,943 additions and 6,009 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rust_binary(
"//src/builtin:builtin_proto_rust",
"@crates//:anyhow",
"@crates//:clap",
"@crates//:prost",
"@crates//:either",
"@crates//:hex",
"@crates//:lsp-types",
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bazel_dep(name = "rules_rust", version = "0.49.3")
bazel_dep(name = "rules_rust", version = "0.54.1")

rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
Expand Down
Loading

0 comments on commit c0cdc98

Please sign in to comment.