axum-server icon indicating copy to clipboard operation
axum-server copied to clipboard

upgrade to rustls 0.22.1, tokio-rustls 0.25.0

Open eric-seppanen opened this issue 1 year ago • 3 comments

I'm not sure if there's any interest in doing this, because it would be a major breaking change and the 0.6 release just went out a few weeks ago.

But since I went through the motions of making it work, I figured I'd at least post this so others could decide whether this change was desirable.

I have tested it in my own axum project, and it seemed to work, but I can't attest to more than that.

eric-seppanen avatar Jan 04 '24 19:01 eric-seppanen

What is the status of this thing? I had to revert to rustls 0.21 because of the incompatibilities.

diptanu avatar Feb 23 '24 05:02 diptanu

rustls 0.23 is out now, so this PR is probably not of much use except as a starting point for working on the next upgrade.

eric-seppanen avatar Mar 07 '24 02:03 eric-seppanen

Thanks for this; we are adopted these changes as a patch in our crate graph during our process of upgrading to [email protected]. Major parts of the ecosystem haven't upgraded to 0.23 yet (including crates like reqwest and hyper-rustls), and if others have a relatively deep integration with rustls like us, they will have issues with client and server TLS configs being incompatible. Because of this, there is value in merging this PR so there is a version of axum-server published on crates.io that uses rustls@0.22. But maybe this is a problem experienced only by a marginal number of users which happens to include us. We've worked around it anyhow; just sharing our perspective.

MaxFangX avatar Mar 26 '24 01:03 MaxFangX

#124 closes this.

programatik29 avatar Jul 30 '24 16:07 programatik29