Skip to content

Commit 5e73cf8

Browse files
committed
v4.7.3
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
1 parent bdcd924 commit 5e73cf8

13 files changed

Lines changed: 59 additions & 43 deletions

Cargo.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "lapin"
3-
version = "4.7.2"
3+
version = "4.7.3"
44
edition = "2024"
55
authors = ["Geoffroy Couprie <geo.couprie@gmail.com>", "Marc-Antoine Perennou <Marc-Antoine@Perennou.com>"]
66
description = "AMQP client library"
77
repository = "https://github.com/amqp-rs/lapin"
88
readme = "README.md"
99
documentation = "https://docs.rs/lapin"
10-
keywords = ["amqp", "rabbitmq", "mio", "futures"]
11-
categories = ["database"]
10+
keywords = ["amqp", "rabbitmq", "messaging", "async", "client"]
11+
categories = ["asynchronous", "network-programming"]
1212
license = "MIT"
1313
build = "build.rs"
1414
rust-version = "1.88.0"
@@ -124,5 +124,5 @@ required-features = ["smol"]
124124
name = "tokio"
125125
required-features = ["tokio"]
126126

127-
[badges]
128-
maintenance = { status = "actively-developed" }
127+
[package.metadata.docs.rs]
128+
all-features = true

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
Copyright (c) 2017-2026, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12
Copyright (c) 2017 Geoffroy Couprie
3+
All rights reserved.
24

35
Permission is hereby granted, free of charge, to any person obtaining
46
a copy of this software and associated documentation files (the

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Downloads](https://img.shields.io/crates/d/lapin.svg)](https://crates.io/crates/lapin)
77
[![Coverage Status](https://coveralls.io/repos/github/amqp-rs/lapin/badge.svg?branch=main)](https://coveralls.io/github/amqp-rs/lapin?branch=main)
88
[![Dependency Status](https://deps.rs/repo/github/amqp-rs/lapin/status.svg)](https://deps.rs/repo/github/amqp-rs/lapin)
9-
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
9+
[![LICENSE](https://img.shields.io/crates/l/lapin)](LICENSE)
1010

1111
<strong>
1212
A Rust AMQP client library.

src/acknowledgement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use tracing::trace;
1616
#[derive(Clone)]
1717
pub(crate) struct Acknowledgements(Arc<Mutex<Inner>>);
1818

19-
type AMQPResult = std::result::Result<(), AMQPError>;
19+
type AMQPResult = Result<(), AMQPError>;
2020

2121
impl Acknowledgements {
2222
pub(crate) fn new(channel_id: u16, returned_messages: ReturnedMessages) -> Self {

src/auth.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::{
44
};
55
use amq_protocol::auth::{Credentials, SASLMechanism};
66
use std::{
7+
fmt,
78
sync::{Mutex, MutexGuard},
89
time::Duration,
910
};
@@ -95,6 +96,7 @@ impl AuthProvider for DefaultAuthProvider {
9596
}
9697

9798
/// OAuth2 token auth handler with expiry and refresh support
99+
#[derive(Debug)]
98100
pub struct TokenAuthProvider<TP: TokenProvider> {
99101
token_provider: TP,
100102
mechanism: SASLMechanism,
@@ -156,6 +158,12 @@ pub struct DefaultTokenProvider {
156158
token: Mutex<LongString>,
157159
}
158160

161+
impl fmt::Debug for DefaultTokenProvider {
162+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
163+
f.debug_struct("DefaultTokenProvider").finish_non_exhaustive()
164+
}
165+
}
166+
159167
impl DefaultTokenProvider {
160168
pub fn new<
161169
VF: Fn(&LongString) -> Option<Duration> + Send + Sync + 'static,

src/heartbeat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{
88
use tracing::error;
99

1010
#[derive(Clone)]
11-
pub struct Heartbeat<RK: RuntimeKit + Clone + Send + 'static> {
11+
pub(crate) struct Heartbeat<RK: RuntimeKit + Clone + Send + 'static> {
1212
connection_status: ConnectionStatus,
1313
killswitch: KillSwitch,
1414
runtime: Runtime<RK>,

src/io_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ enum Status {
3737
Stop,
3838
}
3939

40-
pub struct IoLoop<
40+
pub(crate) struct IoLoop<
4141
RK: RuntimeKit + Clone + Send + 'static,
4242
C: AsyncFn(AMQPUri, Runtime<RK>) -> Result<AsyncTcpStream<<RK as Reactor>::TcpStream>>
4343
+ Send

src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
#![warn(rust_2018_idioms)]
1+
#![deny(missing_debug_implementations, unsafe_code)]
2+
#![warn(unreachable_pub, unused_qualifications, unused_lifetimes)]
3+
#![warn(
4+
clippy::must_use_candidate,
5+
clippy::unwrap_in_result,
6+
clippy::panic_in_result_fn
7+
)]
28

39
//! lapin
410
//!

src/notifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::{
1212
};
1313

1414
#[derive(Default, Clone)]
15-
pub struct Notifier {
15+
pub(crate) struct Notifier {
1616
done: Arc<AtomicBool>,
1717
wakers: Wakers,
1818
}

0 commit comments

Comments
 (0)