Skip to content

refactor(credentials): make ServerCredentials trait dyn-compatible#2724

Open
sauravzg wants to merge 1 commit into
masterfrom
sauravz/dyn-server-creds
Open

refactor(credentials): make ServerCredentials trait dyn-compatible#2724
sauravzg wants to merge 1 commit into
masterfrom
sauravz/dyn-server-creds

Conversation

@sauravzg

@sauravzg sauravzg commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Mirror the ChannelCredentials dyn-compat treatment from upstream PR #2703:

  • Remove associated type Output and generic accept
  • Use BoxEndpoint and #[async_trait] for object safety
  • Delete DynServerCredentials bridge trait (dyn_wrapper.rs)
  • Update LocalServerCredentials and RustlsServerCredendials impls

@sauravzg

sauravzg commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Since, this is a potentially breaking change , Do we need to bump up the crate versions here?

@sauravzg sauravzg force-pushed the sauravz/dyn-server-creds branch from 1608bee to 78b7f20 Compare July 7, 2026 17:30
@dfawley

dfawley commented Jul 7, 2026

Copy link
Copy Markdown
Member

Since, this is a potentially breaking change , Do we need to bump up the crate versions here?

We have a semver checker that will let you know. We already bumped to 0.10 since the last release, though, so it's fine to break things until our next minor release.

@arjan-bal arjan-bal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Comment thread grpc/src/credentials/local.rs Outdated
Mirror the ChannelCredentials dyn-compat treatment from upstream PR #2703:
- Remove associated type Output<I> and generic accept<Input>
- Use BoxEndpoint and #[async_trait] for object safety
- Delete DynServerCredentials bridge trait (dyn_wrapper.rs)
- Update LocalServerCredentials and RustlsServerCredendials impls
@sauravzg sauravzg force-pushed the sauravz/dyn-server-creds branch from 78b7f20 to 1ff57ef Compare July 8, 2026 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants