-
Notifications
You must be signed in to change notification settings - Fork 44
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
chore: update tonic to 0.10 #78
Conversation
Signed-off-by: Pierre Fenoll <[email protected]>
Signed-off-by: Pierre Fenoll <[email protected]>
Signed-off-by: Pierre Fenoll <[email protected]>
Signed-off-by: Pierre Fenoll <[email protected]>
Signed-off-by: Pierre Fenoll <[email protected]>
Signed-off-by: Pierre Fenoll <[email protected]>
Signed-off-by: Pierre Fenoll <[email protected]>
## Summary Replaces `buf generate` by `tonic_build` to generate rust code from protobuf. ## Background `buf generate` relies on the third party plugins `protoc-gen-prost` and `protoc-gen-tonic`, which are not yet updated to prost-build 0.12 and tonic-build 0.10 (and hence prost 0.12, tonic 0.10). This patch moves code generation away from the `buf generate` executable to the Rust `tonic-build` crate, because we need to update prost/tonic and because these projects do not guarantee that code generated with older versions work with newer versions. ## Changes - Replace invoking the `buf generate` executable by using `tonic_build` directly - Use `buf build` to create a file descriptor set that can be fed into `tonic_build` (the latter skips its own invocation of `protoc`) - Clean the generated code by removing all files that are not prefixed with `astria.` (tonic also creates client and server code for tendermint abci; I am not sure why, probably due to the descriptor set) ## Testing Not tested directly; this should not affect the actual code generated. Everything should still compile, all tests should pass. ## Related Issues PR requiring a newer version of penumbra and hence prost: #579 PR againast protoc-gen-prost: neoeinstein/protoc-gen-prost#78
This has been delayed in coming, but I'm doing a broad swing through my projects these past few days. I will indeed bring this in. Sorry for the delay in the meantime. |
Hullo @neoeinstein ! Need some help? |
I think we're nearly there. The sticking point during my testing has been figuring out whether there were code generation changes that result in an incompatibility in versions, and so what the semantic version increment should be. It now appears that |
Now released as protoc-gen-tonic 0.4.0. |
Hello!
I see you're using some fashion of dependencies vetting and this PR brings in deps diffs.
How can I help with the review process? I understand this isn't something that can be done in your stead.