-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust: make generated code refer to
::protobuf
instead of ::__pb
This required a tweak to the Bazel aspect to make it alias the appropriate runtime (C++ or upb) under the name `protobuf`. The nice thing about this is that it allows the same generated code to work with both Bazel and Cargo. With Bazel the runtime crate is named `protobuf_cpp` or `protobuf_upb`, whereas with the Cargo build it is just `protobuf`. PiperOrigin-RevId: 703143472
- Loading branch information
1 parent
f19007f
commit c18384c
Showing
5 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters