amqprs icon indicating copy to clipboard operation
amqprs copied to clipboard

Breaking changes in v2.1.2

Open tyilo opened this issue 5 months ago • 16 comments

The following code works when using v2.1.1 of amqprs, but fails when using v2.1.2:

[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"] }
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.

tyilo avatar Jun 23 '25 08:06 tyilo