ITADN

Breaking changes in v2.1.2

#170Opentyilo 创建于 2025-06-23
T
tyilocommented
The following code works when using v2.1.1 of amqprs, but fails when using v2.1.2: ```toml [package] name = "amqprs-test" version = "0.1.0" edition = "2024" [dependencies] amqprs = { version = "=2.1.1", features = ["tls", "urispec"] } # or: version = "=2.1.2" tokio = { version = "1.45.1", features = ["full"] } ``` ```rust use std::error::Error; use amqprs::connection::{Connection, OpenConnectionArguments}; #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { let url = std::env::var("AMQP_URL")?; let args = OpenConnectionArguments::try_from(url.as_str())?; let connection = Connection::open(&args).await?; println!("{}", connection.connection_name()); Ok(()) } ``` Error when using v2.1.2: ``` thread 'main' panicked at /home/tyilo/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.23.28/src/crypto/mod.rs:249:14: no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` Seems to be a similar situation as in #143 and I think v2.1.2 should be yanked.
15 条评论