Can prost_build
generate 1 module per proto?
#755
Unanswered
bitwizeshift
asked this question in
Q&A
Replies: 1 comment
-
Prost doesn't support this though this could be something we add as an opt-in behavior. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to using
prost
andprost_build
, so it's likely that I'm just overlooking this feature; but is it possible to have a 1:1 mapping between*.proto
files and the generated*.rs
files, rather than generating everything into a file that corresponds to the package identifier?I'm working with a relatively large protobuf project with over a hundred semantic-type definitions used for messaging. All of these types exist in the same package definition, and the definitions of which are not within my control.
prost
by default is generating all of these into a singlers
file, which is nearly 68k lines of code. This affects indexing greatly, massively increases compile-times (25+ seconds), and breaks IDEs that have lower file-size thresholds for intellisense.Is there a setting I could do that allows this to be broken up, so that rather than generating one
my.package.id.rs
, it generates something like:Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions