-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Description
What version of protobuf and what language are you using?
Version: 33.0-rc1
Language: Rust
What operating system (Linux, Windows, ...) and version?
Debian 6.12.35-1rodete1-amd64
What runtime / compiler are you using (e.g., python version or gcc version)
bazel 8.4.2
What did you do?
Write load("@protobuf//rust:defs.bzl", "rust_proto_library") in a BUILD file
What did you expect to see
rust_proto_library should be available in dependent projects
What did you see instead?
Bazel throws the following error:
Unable to find package for @@[unknown repo 'rules_rust' requested from @@protobuf+ (did you mean 'rules_cc'?)]//rust:defs.bzl: The repository '@@[unknown repo 'rules_rust' requested from @@protobuf+ (did you mean 'rules_cc'?)]' could not be resolved: No repository visible as '@rules_rust' from repository '@@protobuf+'.
Anything else we should know about your project / environment
The reason seems to be that rules_rust is a dev_dependency of protobuf, not a regular dependency. Adding it as a dependency of my project does not help, since Bazel loads protobuf before rules_rust.