-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a codegen builder #10
Comments
I'm just passing by to 👍 this issue. I'm using ProtoBufs in a Rust project for work and we currently have a monorepo that holds all our protobuffers (and a very long 200+ LoC |
@valarauca That's already possible, have you seen the docs in https://github.com/danburkert/prost/tree/master/prost-build README? |
I'm really not sure I understand (or I misstated my issue). I'm attempting to retrofit Structure example:
So this becomes
If I just do something like This fails as I will try this but currently I cannot build I've attempted to |
Yes, this is currently supported. The first arg to prost_build::compile_protos(&["src/team/team.proto"], &["src/"], None).unwrap() |
Awesome. Any clue what's up with the My first attempt it didn't happen, but on the 2nd, 3rd, and 4th it crashed and burned. Currently I can't even build anything that requires |
hmm, no. My usual route for debugging issues like that is to inspect Cargo.lock and figure out where they are coming from. |
Interesting. I'll throw this in queue. |
A code generator config has been added in 17474e8. @valarauca if you're still having build issues feel free to open another issue. |
There are expected to be a few more optional features in the future: map type, service generator, zero copy, etc.
The text was updated successfully, but these errors were encountered: