feat: add d_proto_library#194
Merged
dcarp merged 3 commits intobazel-contrib:mainfrom May 2, 2026
Merged
Conversation
7ed66f6 to
cf52edb
Compare
f01750c to
92fc422
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
d_proto_libraryfor generating and compiling D code fromproto_librarytargets.This uses Protobuf’s Bazel-provided
ProtoInfoandprotoc, plus theprotobuf-dv0.7.0 runtime/compiler plugin exposed as@protobuf_d. The rule follows the modern<lang>_proto_libraryshape where proto inputs are provided throughdeps.Changes
d_proto_libraryandd_proto_aspect@protobuf//:protocand@protobuf_d//protoc_gen_d:protoc-gen-dd_compilehelperprotobuf30.2 andprotobuf_drepository setup for Bzlmod and WORKSPACEd_compile/d_proto_compileto take explicit action inputs instead of full rule contextd_proto_libraryin both Bzlmod and WORKSPACE setupTesting
bazel test //...bazel test //...frome2e/smokeUSE_BAZEL_VERSION=8.4.2 bazel --output_base=/tmp/rules_d_e2e_workspace_bazel_8_4_2 test //... --enable_workspace --noenable_bzlmod