Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set minimal dependency from rustls (0.21.6)
In the crate tokio-rustls-0.24.0 the dependency from the crate rustls is too loose (0.21.0). To reproduce the problem: cargo +nightly update -Z minimal-versions cargo check --package async-nats --all-targets which fails with errors: error[E0599]: no method named `add_trust_anchors` found for struct `RootCertStore` in the current scope --> async-nats/src/tls.rs:108:28 | 108 | root_store.add_trust_anchors(trust_anchors); | ^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `add_server_trust_anchors` error[E0599]: no method named `with_client_auth_cert` found for struct `ConfigBuilder` in the current scope --> async-nats/src/tls.rs:117:29 | 117 | builder.with_client_auth_cert(cert, key).map_err(|_| { | ^^^^^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `with_no_client_auth` The first error evades after updating rustls to 0.21.5, the second one requires 0.21.6.
- Loading branch information