Is there an equivalent to https://github.com/bazelbuild/rules_go/blob/master/proto/core.rst#go_proto_compiler in rules_rust? #2283
rbtcollins
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/bazelbuild/rules_go/blob/master/proto/core.rst#go_proto_compiler allows local or third party protoc plugins to be used.
I have a code base that was using prost codegen hooks to generate trait implementations for all the types in a protobuf file. While I can write a protoc plugin to do that, it isn't clear how to hook that into rules_rust today?
Ideally I would be able to either reproduce the prost proto library rule trivially, with the new plugin added in, or be able to customise the existing prost rule with an additional transform stage.
Beta Was this translation helpful? Give feedback.
All reactions