hundreds-father-404
02/17/2021, 9:34 PMtokio-rustls
is exporting rustls::ClientConfig
as tokio_rustls::rustls::ClientConfig
. But they're being treated as distinct types
I'm trying to use the crate rustls_native_certs
, which creates a rustls::RootCertStore
, then trying to set our tokio_rustls::rustls::ClientConfig
to use it. But it's complaining that we need a tokio_rustls::rustls::RootCertStore
, not rustls::RootCertStore
Any idea how to get this re-export playing nicely?hundreds-father-404
02/17/2021, 9:35 PM.into()
to no availhundreds-father-404
02/17/2021, 9:36 PMhundreds-breakfast-49010
02/17/2021, 9:37 PMrustls
tookio_rustls
is using internally is not the same as the version pants is using, which would make them different typeshundreds-breakfast-49010
02/17/2021, 9:37 PMhundreds-father-404
02/17/2021, 9:38 PMrustls = "0.19"
rustls-native-certs = "0.5"
tokio = { version = "0.2.23", features = ["process", "rt-threaded", "sync", "tcp", "time"] }
tokio-rustls = "0.14"
hundreds-breakfast-49010
02/17/2021, 9:38 PMaverage-vr-56795
02/17/2021, 9:41 PMcargo tree
will help you explore what's going on šaverage-vr-56795
02/17/2021, 9:41 PMhundreds-father-404
02/17/2021, 9:53 PM⯠./cargo tree | grep rustls
ā ā ā āāā rustls-native-certs v0.4.0
ā ā ā ā āāā rustls v0.18.1
ā ā ā āāā tokio-rustls v0.14.1
ā ā ā ā āāā rustls v0.18.1 (*)
COnfirmed that all deps are using rustls 0.18.1
across the board toohundreds-father-404
02/17/2021, 9:54 PMaverage-vr-56795
02/17/2021, 9:54 PM