Repository navigation
feat(build): allow to specify trait attributes - #2348
Merged
Merged
Conversation
cjqzhao
pushed a commit
to cjqzhao/tonic
that referenced
this pull request
Aug 7, 2025
cjqzhao
pushed a commit
to cjqzhao/tonic
that referenced
this pull request
Aug 7, 2025
renovate Bot
added a commit
to OhataKenji/zelith
that referenced
this pull request
Nov 7, 2026
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tonic](https://redirect.github.com/grpc/grpc-rust) | dependencies | minor | `0.12.3` → `0.14.0` | --- ### Release Notes <details> <summary>grpc/grpc-rust (tonic)</summary> ### [`v0.14.9`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-v0.14.9) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.8...tonic-v0.14.9) ##### Added - *(transport)* expose h2 reset stream settings on Endpoint ([#​2972](https://redirect.github.com/grpc/grpc-rust/pull/2972)) ##### Fixed - *(server)* set a timer on HTTP/1 connections so hyper's header read timeout applies ([#​2980](https://redirect.github.com/grpc/grpc-rust/pull/2980)) ### [`v0.14.8`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-types-v0.14.8) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.7...tonic-v0.14.8) ##### Fixed - *(types)* Serialize `BadRequest::FieldViolation` `reason` and `localized_message` ([#​2461](https://redirect.github.com/grpc/grpc-rust/pull/2461)) - fix/silence all clippy warnings ([#​2807](https://redirect.github.com/grpc/grpc-rust/pull/2807)) ##### Other - fix changelog duplicate and update repository URLs ([#​2943](https://redirect.github.com/grpc/grpc-rust/pull/2943)) - License update ([#​2749](https://redirect.github.com/grpc/grpc-rust/pull/2749)) ### [`v0.14.7`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-reflection-v0.14.7) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/tonic-v0.14.6...tonic-v0.14.7) ##### Fixed - *(reflection)* preserve custom options in served descriptors ([#​2730](https://redirect.github.com/grpc/grpc-rust/pull/2730)) ##### Other - fix changelog duplicate and update repository URLs ([#​2943](https://redirect.github.com/grpc/grpc-rust/pull/2943)) - enable missing feature for test build ([#​2820](https://redirect.github.com/grpc/grpc-rust/pull/2820)) - License update ([#​2749](https://redirect.github.com/grpc/grpc-rust/pull/2749)) ### [`v0.14.6`](https://redirect.github.com/grpc/grpc-rust/releases/tag/tonic-v0.14.6) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.5...tonic-v0.14.6) ##### Added - *(transport/channel)* expose ServerCertVerifier API ([#​2612](https://redirect.github.com/hyperium/tonic/pull/2612)) ##### Fixed - map no trailers ok status to unknown ([#​2543](https://redirect.github.com/hyperium/tonic/pull/2543)) ##### Other - add max_frame_size to client Endpoint ([#​2592](https://redirect.github.com/hyperium/tonic/pull/2592)) - Allow setting the HTTP/2 client header table size ([#​2582](https://redirect.github.com/hyperium/tonic/pull/2582)) - update rust edition and version to 2024 and 1.88, respectively ([#​2525](https://redirect.github.com/hyperium/tonic/pull/2525)) ### [`v0.14.5`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.5) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.4...v0.14.5) #### What's Changed - Add max connections setting **Full Changelog**: <grpc/grpc-rust@v0.14.4...v0.14.5> ### [`v0.14.4`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.4) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.3...v0.14.4) #### What's Changed - chore(doc): Replace doc_auto_cfg config with doc_cfg by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2428](https://redirect.github.com/hyperium/tonic/pull/2428) - fix(web): allow space after `:` in `grpc-status` by [@​LucioFranco](https://redirect.github.com/LucioFranco) in [grpc/grpc-rust#2506](https://redirect.github.com/hyperium/tonic/pull/2506) #### New Contributors - [@​r0x0d](https://redirect.github.com/r0x0d) made their first contribution in [grpc/grpc-rust#2502](https://redirect.github.com/hyperium/tonic/pull/2502) **Full Changelog**: <grpc/grpc-rust@v0.14.3...v0.14.4> ### [`v0.14.3`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.3) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.2...v0.14.3) #### Features - Expose `tcp_keepalive_interval` and `tcp_keepalive_retries` options on Server ([#​2472](https://redirect.github.com/grpc/grpc-rust/issues/2472)) - Allow configuration of `max_local_error_reset_streams` on Server ([#​2437](https://redirect.github.com/grpc/grpc-rust/issues/2437)) - Put source error into the `Display` impl of `Status` ([#​2417](https://redirect.github.com/grpc/grpc-rust/issues/2417)) - `Server::default()` now sets `TCP_NODELAY` to true ([#​2413](https://redirect.github.com/grpc/grpc-rust/issues/2413)) #### Bug Fixes - Respect `max_message_size` when decompressing a message ([#​2484](https://redirect.github.com/grpc/grpc-rust/issues/2484)) - Depend on http at least 1.1.0 ([#​2426](https://redirect.github.com/grpc/grpc-rust/issues/2426)) #### Documentation - Fix documentation links for timeout configuration ([#​2483](https://redirect.github.com/grpc/grpc-rust/issues/2483)) - Fix documentation typos and grammar issues in status.rs and codec/mod.rs ([#​2468](https://redirect.github.com/grpc/grpc-rust/issues/2468)) - Fix labels in `Display for Status` ([#​2414](https://redirect.github.com/grpc/grpc-rust/issues/2414)) - Fix features docs in tonic-build and tonic-prost-build ([#​2434](https://redirect.github.com/grpc/grpc-rust/issues/2434)) - Remove redundant word in tonic-build and tonic-prost-build README ([#​2425](https://redirect.github.com/grpc/grpc-rust/issues/2425)) ### [`v0.14.2`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.2) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.1...v0.14.2) #### What's Changed - Improve `Status` formatting by [@​emilk](https://redirect.github.com/emilk) in [grpc/grpc-rust#2403](https://redirect.github.com/hyperium/tonic/pull/2403) - Separate out Tls ConnectInfo trait support into separate tls feature by [@​xumaple](https://redirect.github.com/xumaple) in [grpc/grpc-rust#2402](https://redirect.github.com/hyperium/tonic/pull/2402) #### New Contributors - [@​Shaun1](https://redirect.github.com/Shaun1) made their first contribution in [grpc/grpc-rust#2385](https://redirect.github.com/hyperium/tonic/pull/2385) - [@​emilk](https://redirect.github.com/emilk) made their first contribution in [grpc/grpc-rust#2403](https://redirect.github.com/hyperium/tonic/pull/2403) - [@​xumaple](https://redirect.github.com/xumaple) made their first contribution in [grpc/grpc-rust#2402](https://redirect.github.com/hyperium/tonic/pull/2402) **Full Changelog**: <grpc/grpc-rust@v0.14.1...v0.14.2> ### [`v0.14.1`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.1) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.14.0...v0.14.1) Notable change is to relax the accidental MSRV bump in the last release. #### What's Changed - Add `service_generator` method to `Builder` by [@​koesie10](https://redirect.github.com/koesie10) in [grpc/grpc-rust#2364](https://redirect.github.com/hyperium/tonic/pull/2364) - Improve connection accept error message [@​stepancheg](https://redirect.github.com/stepancheg) in [grpc/grpc-rust#2366](https://redirect.github.com/hyperium/tonic/pull/2366) - Remove unconditional enable of tonic-build transport feature by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2357](https://redirect.github.com/hyperium/tonic/pull/2357) - chore: relax msrv for most crates by [@​acrrd](https://redirect.github.com/acrrd) in [grpc/grpc-rust#2378](https://redirect.github.com/hyperium/tonic/pull/2378) #### New Contributors - [@​koesie10](https://redirect.github.com/koesie10) made their first contribution in [grpc/grpc-rust#2364](https://redirect.github.com/hyperium/tonic/pull/2364) - [@​stepancheg](https://redirect.github.com/stepancheg) made their first contribution in [grpc/grpc-rust#2366](https://redirect.github.com/hyperium/tonic/pull/2366) - [@​acrrd](https://redirect.github.com/acrrd) made their first contribution in [grpc/grpc-rust#2378](https://redirect.github.com/hyperium/tonic/pull/2378) **Full Changelog**: <grpc/grpc-rust@v0.14.0...v0.14.1> ### [`v0.14.0`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.14.0) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.13.1...v0.14.0) This release marks an important milestone for tonic, "hopefully" this will be the last major breaking release of Tonic before we start to transition work into bringing the community a joint-effort `grpc-rust` implementation. For the moment, any new features for the core of tonic that are not related to the work towards `grpc-rust` will not be accepted (I believe tonic to be in quite a good spot, security features of course will be handled with the upmost importance). Stay tuned there will be more information the coming months on what is going on with the new project but you can already see some of the code in the `grpc` crate within the `tonic` repository. You can always watch [this video](https://www.youtube.com/watch?v=ux1xoUR9Xm8) for more info on `grpc-rust`. #### Breaking Changes - Prost updated to v0.14 - Prost has been extracted to their own crates #### Migration guide To migrate between `<=v0.13.1` to `v0.14` anything that used prost has now been moved into either `tonic-prost` or `tonic-prost-build`. All the previous types are still available but under these two new crates. #### What's Changed - add support for tower's load-shed layer by [@​joeroback](https://redirect.github.com/joeroback) in [grpc/grpc-rust#2189](https://redirect.github.com/hyperium/tonic/pull/2189) - Box Status contents to reduce enum size ([#​2253](https://redirect.github.com/grpc/grpc-rust/issues/2253)) by [@​tustvold](https://redirect.github.com/tustvold) in [grpc/grpc-rust#2282](https://redirect.github.com/hyperium/tonic/pull/2282) - Update to prost 0.14 by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2300](https://redirect.github.com/hyperium/tonic/pull/2300) - Update generated code to `error_details.proto` `a56cbf3b` by [@​kriswuollett](https://redirect.github.com/kriswuollett) in [grpc/grpc-rust#2306](https://redirect.github.com/hyperium/tonic/pull/2306) - feat(transport): Allow setting TCP_KEEPINTVL and TCP_KEEPCNT by [@​xmakro](https://redirect.github.com/xmakro) in [grpc/grpc-rust#2299](https://redirect.github.com/hyperium/tonic/pull/2299) - fix(tonic): make `Streaming` `Sync` again by [@​Twey](https://redirect.github.com/Twey) in [grpc/grpc-rust#2293](https://redirect.github.com/hyperium/tonic/pull/2293) - feat: preserve user-agent header (for real) by [@​dbolduc](https://redirect.github.com/dbolduc) in [grpc/grpc-rust#2290](https://redirect.github.com/hyperium/tonic/pull/2290) - feat(tls): Add tls handshake timeout support by [@​honsunrise](https://redirect.github.com/honsunrise) in [grpc/grpc-rust#2309](https://redirect.github.com/hyperium/tonic/pull/2309) - Update socket2 to v0.6 by [@​Thomasdezeeuw](https://redirect.github.com/Thomasdezeeuw) in [grpc/grpc-rust#2329](https://redirect.github.com/hyperium/tonic/pull/2329) - feat: Extract prost into its own tonic based crates by [@​LucioFranco](https://redirect.github.com/LucioFranco) in [grpc/grpc-rust#2321](https://redirect.github.com/hyperium/tonic/pull/2321) - feat(build): allow to specify trait attributes by [@​ya7on](https://redirect.github.com/ya7on) in [grpc/grpc-rust#2348](https://redirect.github.com/hyperium/tonic/pull/2348) #### New Contributors - [@​joeroback](https://redirect.github.com/joeroback) made their first contribution in [grpc/grpc-rust#2189](https://redirect.github.com/hyperium/tonic/pull/2189) - [@​tustvold](https://redirect.github.com/tustvold) made their first contribution in [grpc/grpc-rust#2282](https://redirect.github.com/hyperium/tonic/pull/2282) - [@​darrasse](https://redirect.github.com/darrasse) made their first contribution in [grpc/grpc-rust#2297](https://redirect.github.com/hyperium/tonic/pull/2297) - [@​ADSteele916](https://redirect.github.com/ADSteele916) made their first contribution in [grpc/grpc-rust#2291](https://redirect.github.com/hyperium/tonic/pull/2291) - [@​kriswuollett](https://redirect.github.com/kriswuollett) made their first contribution in [grpc/grpc-rust#2306](https://redirect.github.com/hyperium/tonic/pull/2306) - [@​xmakro](https://redirect.github.com/xmakro) made their first contribution in [grpc/grpc-rust#2299](https://redirect.github.com/hyperium/tonic/pull/2299) - [@​Twey](https://redirect.github.com/Twey) made their first contribution in [grpc/grpc-rust#2293](https://redirect.github.com/hyperium/tonic/pull/2293) - [@​honsunrise](https://redirect.github.com/honsunrise) made their first contribution in [grpc/grpc-rust#2309](https://redirect.github.com/hyperium/tonic/pull/2309) - [@​CommanderStorm](https://redirect.github.com/CommanderStorm) made their first contribution in [grpc/grpc-rust#2308](https://redirect.github.com/hyperium/tonic/pull/2308) - [@​ya7on](https://redirect.github.com/ya7on) made their first contribution in [grpc/grpc-rust#2348](https://redirect.github.com/hyperium/tonic/pull/2348) **Full Changelog**: <grpc/grpc-rust@v0.13.1...v0.14.0> ### [`v0.13.1`](https://redirect.github.com/grpc/grpc-rust/releases/tag/v0.13.1) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.13.0...v0.13.1) #### What's Changed - Bump `h2` to `v0.4.10` by [@​LucioFranco](https://redirect.github.com/LucioFranco) [grpc/grpc-rust#2263](https://redirect.github.com/hyperium/tonic/pull/2263) - feat(web): relax bounds for inner service's response body by [@​bmwill](https://redirect.github.com/bmwill) in [grpc/grpc-rust#2245](https://redirect.github.com/hyperium/tonic/pull/2245) - feat: preserve request user-agent by [@​dbolduc](https://redirect.github.com/dbolduc) in [grpc/grpc-rust#2250](https://redirect.github.com/hyperium/tonic/pull/2250) - feat(server): Add method to get local addr to TcpIncoming by [@​tottoto](https://redirect.github.com/tottoto) in [grpc/grpc-rust#2233](https://redirect.github.com/hyperium/tonic/pull/2233) - feat: Expose Status as a Response extension by [@​tamasfe](https://redirect.github.com/tamasfe) in [grpc/grpc-rust#2145](https://redirect.github.com/hyperium/tonic/pull/2145) - fix: tls config overwrite in endpoint by [@​vigneshs-12](https://redirect.github.com/vigneshs-12) in [grpc/grpc-rust#2252](https://redirect.github.com/hyperium/tonic/pull/2252) - feat: expose creation of HealthService and HealthReporter by [@​LeonHartley](https://redirect.github.com/LeonHartley) in [grpc/grpc-rust#2251](https://redirect.github.com/hyperium/tonic/pull/2251) #### New Contributors - [@​dbolduc](https://redirect.github.com/dbolduc) made their first contribution in [grpc/grpc-rust#2250](https://redirect.github.com/hyperium/tonic/pull/2250) - [@​tamasfe](https://redirect.github.com/tamasfe) made their first contribution in [grpc/grpc-rust#2145](https://redirect.github.com/hyperium/tonic/pull/2145) - [@​vigneshs-12](https://redirect.github.com/vigneshs-12) made their first contribution in [grpc/grpc-rust#2252](https://redirect.github.com/hyperium/tonic/pull/2252) - [@​rafaeling](https://redirect.github.com/rafaeling) made their first contribution in [grpc/grpc-rust#2207](https://redirect.github.com/hyperium/tonic/pull/2207) - [@​LeonHartley](https://redirect.github.com/LeonHartley) made their first contribution in [grpc/grpc-rust#2251](https://redirect.github.com/hyperium/tonic/pull/2251) **Full Changelog**: <grpc/grpc-rust@v0.13.0...v0.13.1> ### [`v0.13.0`](https://redirect.github.com/grpc/grpc-rust/blob/HEAD/CHANGELOG.md#NOTE-ths-changelog-is-no-longer-used-and-from-version-v0130-onward-we-will-be-using-github-releases-and-the-changes-can-be-found-here-) [Compare Source](https://redirect.github.com/grpc/grpc-rust/compare/v0.12.3...v0.13.0) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/OhataKenji/zeal). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: OhataKenji <[email protected]> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #2341
Motivation
Currently, tonic-build generates service traits without any ability to attach additional attributes or proc-macros.
This creates friction when integrating generated traits with tools and frameworks that rely on such attributes.
For example, when using mockall for testing, one cannot simply write:
because the trait is auto-generated and cannot be easily modified.
As a result, mocking requires duplicating the entire trait or writing manual boilerplate, which is error-prone and difficult to maintain.
Solution
This PR adds a new
trait_attributeconfiguration method totonic-build, allowing custom attributes (including proc-macros) to be injected into generated service traits.Example usage:
This will place
#[mockall::automock]directly above the generatedMyServicetrait, avoiding manual trait duplication for testing and enabling other use cases (e.g., tracing or custom derives).I could not find any existing tests in
tonic-buildthat cover this code path, so I have not added automated tests yet.If the maintainers can point me to where such tests should live, I can add them.