Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update rules_rust 0.49.3 -> 0.54.1 #50

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

hauserx
Copy link
Contributor

@hauserx hauserx commented Nov 17, 2024

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`

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`
```
@hauserx hauserx changed the title build: update rules_rulst 0.49.3 -> 0.54.1 build: update rules_rust 0.49.3 -> 0.54.1 Nov 17, 2024
@cameron-martin cameron-martin enabled auto-merge (squash) November 19, 2024 00:25
@cameron-martin cameron-martin merged commit af010d2 into cameron-martin:master Nov 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants