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

tonic-rpc-macro: Use CodeGenBuilder instead of generate functions #34

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

snowkat
Copy link
Contributor

@snowkat snowkat commented Dec 18, 2022

Since tonic 0.8.3 (specifically hyperium/tonic#1130), builds of tonic-rpc-macro fail due to a change in the tonic_build::{client, server}::generate functions. As those functions have been deprecated as of 0.8.4, updating the two lines in make_rpc to use CodeGenBuilder seemed like the better route.

@vorot93
Copy link

vorot93 commented Dec 29, 2022

@adamrk I wonder if you could take a look at this PR?

@adamrk
Copy link
Owner

adamrk commented Feb 6, 2023

Sorry for the delay. It looks good I'm just also bumping the tonic-build version to 0.8.4 since it's required for CodeGenBuilder. Thanks for the fix @snowkat!

@adamrk adamrk merged commit 8eb91cc into adamrk:main Feb 6, 2023
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.

3 participants