deadpool_imap 🌊: High-Performance IMAP Connection Pooling for Rust
deadpool_imap provides a highly efficient and reliable IMAP connection pool implementation built on the deadpool framework and the core imap_session crate.
This crate is ideal for server applications, APIs, or any service where IMAP sessions need to be frequently opened and reused across multiple concurrent requests, drastically reducing latency by avoiding repeated TLS handshakes and authentication.
📦 Installation
To use deadpool_imap in your project, add the following to your Cargo.toml:
[]
= "0.1"
= "0.1"
= { = "1", = ["full"] }
= { = "0.12", = ["managed"] }
= { = "0.5.0", = false, = [
"tokio",
"runtime-tokio",
"futures-util",
] }
🚀 Usage Example (Pooled Sessions)
Use the pool for server applications or APIs where IMAP sessions need to be reused across multiple requests to reduce latency and resource consumption.
use TlsConnector;
use managed;
use ImapConnectionManager;
use ;
type ImapPool = Pool;
async
📄 License
This project is licensed under: