refinery icon indicating copy to clipboard operation
refinery copied to clipboard

New version forces compilation of native-TLS

Open TimDiekmann opened this issue 2 months ago • 1 comments

With the new version, it's enforced that native TLS is compiled as soon as you enable tokio-postgres. Is it possible to move that to another feature?

Previously, we had this feature section:

tokio-postgres = ["dep:tokio-postgres", "tokio", "tokio/rt"]

but now we have

tokio-postgres = ["dep:postgres-native-tls", "dep:native-tls", "dep:tokio-postgres", "tokio", "tokio/rt"]

TimDiekmann avatar Oct 28 '25 10:10 TimDiekmann

Just hit this as well. I was previously establishing my own connection with my own TLS based on rustls, but now I have a native-tls dependency I would prefer not to use.

asonix avatar Nov 17 '25 21:11 asonix