expected struct `rustls::anchors::RootCertStore`, found a different struct `rustls::anchors::RootCertStore`
|
= note: perhaps two different versions of crate `rustls` are being used?
A dependency is using rustls:0.17.0 and another is pulling in rustls:0.18.1 causing this message.
I though dependency hell wasn't a thing in Rust? What am I missing here?
Cargo tries to unify versions whenever possible. In this case it is not possible. Normally this is not a problem, and both versions will just co-exist. However when you have a crate that gets a value of one version through one way and try to use it on a function of the other version, this will result in an error. This problem can only happen when a dependency has rustls as public dependency and you or another dependency that also has rustls as public dependency depends on a different version yourself.