You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user does not need object safety (not yet supported by the mainline compiler), #[async_trait] on the generated service is not necessary. Not having it avoids its quirks messing up with other macros.
Proposal
Add a generate_async_trait(bool) method to ::tonic_build::Builder.
Alternatives
This is the way of the future.
The text was updated successfully, but these errors were encountered:
Feature Request
Crates
tonic_build
Motivation
When the user does not need object safety (not yet supported by the mainline compiler),
#[async_trait]
on the generated service is not necessary. Not having it avoids its quirks messing up with other macros.Proposal
Add a
generate_async_trait(bool)
method to::tonic_build::Builder
.Alternatives
This is the way of the future.
The text was updated successfully, but these errors were encountered: