I've only just seen this issue in rustls-acme after updating dependencies and getting below compilation error.
It doesn't occur with 0.13.2. I saw the 0.13.3 release is just about an hour old, so I posted this issue before investigating.
cargo update -p rcgen --precise 0.13.2 fixes it for indirect dependencies.
error[E0277]: the trait bound `Arc<rcgen::Certificate>: AsRef<CertificateParams>` is not satisfied
--> [...]/cargo_home/registry/src/index.crates.io-6f17d22bba15001f/rustls-acme-0.13.0/src/caches/test.rs:71:48
|
71 | let cert = params.signed_by(&key_pair, &self.ca_cert, &self.ca_key).unwrap();
| --------- ^^^^^^^^^^^^^ the trait `AsRef<CertificateParams>` is not implemented for `Arc<rcgen::Certificate>`
| |
| required by a bound introduced by this call
|
= help: the trait `AsRef<rcgen::Certificate>` is implemented for `Arc<rcgen::Certificate>`
= help: for that trait implementation, expected `rcgen::Certificate`, found `CertificateParams`
note: required by a bound in `CertificateParams::signed_by`
--> [...]/cargo_home/registry/src/index.crates.io-6f17d22bba15001f/rcgen-0.13.3/src/certificate.rs:161:17
|
158 | pub fn signed_by(
| --------- required by a bound in this associated function
...
161 | issuer: &impl AsRef<CertificateParams>,
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CertificateParams::signed_by`
For more information about this error, try `rustc --explain E0277`.
FlorianUekermann/rustls-acme#73
I've only just seen this issue in rustls-acme after updating dependencies and getting below compilation error.
It doesn't occur with 0.13.2. I saw the 0.13.3 release is just about an hour old, so I posted this issue before investigating.
cargo update -p rcgen --precise 0.13.2fixes it for indirect dependencies.FlorianUekermann/rustls-acme#73