Skip to content
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 + prost #669

Closed
wants to merge 2 commits into from
Closed

chore: Update tonic + prost #669

wants to merge 2 commits into from

Conversation

realtimetodie
Copy link

The rustfmt component is now optional as of tonic-build release version 0.7.0.

In PR hyperium/tonic#904, the rustfmt component was replaced with the prettyplease crate.

Resolves #40.

@sug0 sug0 requested a review from tzemanovic October 23, 2022 21:14
tzemanovic
tzemanovic previously approved these changes Oct 24, 2022
Copy link
Member

@tzemanovic tzemanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes LGTM, but

  • tonic-build bump includes a breaking change from prost-build Remove build.rs tokio-rs/prost#657 so protoc is now a build dep - can you pls update the instructions in documentation/docs/src/user-guide/install.md and README?
  • with this, we're compiling 2 versions of prost and prost-build (cargo tree -i prost) - ideally, we should also upgrade prost in our forks of ibc-rs, tendermint-rs and tower-abci

@realtimetodie
Copy link
Author

To update tonic, we need to update prost as it is required for the grpc layer. Luckily, this already happened upstream. To update the heliaxdev/ibc-rs fork to v1.0.0, an update of heliaxdev/tendermint-rs to v0.25.0 is required first.

@realtimetodie realtimetodie changed the title chore: Update tonic chore: Update tonic + prost Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build script: only use rustfmt for tonic build if it’s available
2 participants