Skip to content

Minimal example to showcase an incompatibility issue between quinn and rustls

Notifications You must be signed in to change notification settings

jonatanzeidler/quinn-rustls-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quinn Rustls Compatibility Issue

This is a minimal example to showcase an incompatibility issue when using rustls ClientConfig (or ServerConfig) to configure quinn.

Error message:

error[E0277]: the trait bound `rustls::ClientConfig: quinn::crypto::ClientConfig` is not satisfied
  --> src/main.rs:10:34
   |
10 |         quinn::ClientConfig::new(Arc::new(rustls_client_config));
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `quinn::crypto::ClientConfig` is not implemented for `rustls::ClientConfig`
   |
   = help: the trait `quinn::crypto::ClientConfig` is implemented for `rustls::client::client_conn::ClientConfig`
   = note: required for the cast from `rustls::ClientConfig` to the object type `dyn quinn::crypto::ClientConfig`

For more information about this error, try `rustc --explain E0277`.

Please note that rustls and quinn versions have been pinned, but the issue can arrise from Cargo's semantic versioning rules on choosing versions. In fact, this happened to one of our projects.

About

Minimal example to showcase an incompatibility issue between quinn and rustls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages