-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update dependencies (rustls and axum-server) #5
Conversation
Use rustls::pki_types::TrustAnchor instead.
Ok so the |
We can't share the ClientConfig anymore as reqwest has yet to be updated to rustls@0.22 so instead we just let the client use it's own rustls configuration.
@Frando and @dignifiedquire - this now compiles and it appears to be behaving the same as before but would appreciate a review. The assumption i make is that we should be using Pkcs8 (and the new It's also worth noting that I had to change the behavior of the reqwest client to use it's own version of |
src/https_helper.rs
Outdated
let client = reqwest::ClientBuilder::new() | ||
.use_preconfigured_tls(client_config) | ||
.use_rustls_tls() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this removes the ability to pass the client config, which is not good, we should wait until reqwest is updated and we can pass it along again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this is part of seanmonstar/reqwest#2059
This looks correct asfaict |
Thanks for taking a look @dignifiedquire , I am already subscribed to that reqwest issue as I also need that to land to settle on http/hyper v1. Will update this PR once that lands and revert to |
Hi @dignifiedquire, We now have a compatible version of
The reqwest docs clearly indicate this can happen when a TLS backend version mismatch occurs however running This is the code that is failing to execute correctly: https://docs.rs/reqwest/latest/src/reqwest/async_impl/client.rs.html#1592-1602 Just not sure why the downcast is failing. Any ideas? |
Oops, I wasn't passing Unfortunately, |
Wow, the version of And: |
Sigh..this release cycle of rustls is really painful. Thanks for keeping track of this |
Closing this as it looks like #11 will resolve this. |
Hi,
I would like to integrate this into a project that uses a newer version of
rustls
andaxum-server
so I am trying to update the dependencies.I am working through the changes here:
https://github.com/rustls/rustls/releases/tag/v%2F0.22.0
But am not sure what to do about
OwnedTrustAnchor
, do you think you could take a look and advise.This is the error:
Thanks 🙏
Edit, a reminder for myself, I am using this to step through the compiler errors: