r2d2
A generic connection pool
0.8.10
34M downloads/mo
#1565 most downloaded on crates.io
sfackler/r2d2
What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 2.0 years
Rarely documented
notes for 5 of 42 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
42 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
42 releases · Nov 2014 to Jun 2022Releases
latest 42-
0.8.1021 Jun 2022Nothing published for this version
-
0.8.930 Jun 2020Nothing published for this version
-
0.8.825 Dec 2019Nothing published for this version
-
0.8.726 Nov 2019Nothing published for this version
-
0.8.619 Oct 2019Nothing published for this version
-
0.8.507 Jun 2019Nothing published for this version
-
0.8.402 Apr 2019Release notes
Open source →Added
- Added a
HandleEventtrait used to listen for various events from the pool for monitoring purposes.
Changed
- Switched from standard library synchronization primitives to
parking_lot.
- Added a
-
0.8.303 Nov 2018Release notes
Open source →Fixed
- The set of idle connections is now treated as a stack rather than a queue. The old behavior interacted poorly with configurations that allowed the pool size to shrink when mostly idle.
-
0.8.224 Dec 2017 -
0.8.128 Nov 2017 -
0.8.026 Nov 2017Release notes
Open source →Changed
-
Pool configuration has changed. Rather than constructing a
Configand passing it to thePoolconstructor, you now configure aBuilderwhich then directly constructs the pool:// In 0.7.x let config = Config::builder() .min_idle(3) .build(); let pool = Pool::new(config, manager)?; // In 0.8.x let pool = Pool::builder() .min_idle(3) .build(manager)?; -
The
Pool::newmethod can be used to construct aPoolwith default settings:// In 0.7.x let config = Config::default(); let pool = Pool::new(config, manager)?; // In 0.8.x let pool = Pool::new(manager)?; -
The
initialization_fail_fastconfiguration option has been replaced with separateBuilder::buildandBuilder::build_uncheckedmethods. The second returns aPooldirectly without wrapping it in aResult, and does not check that connections are being successfully opened:// In 0.7.x let config = Config::builder() .initialization_fail_fast(false) .build(); let pool = Pool::new(config, manager).unwrap(); // In 0.8.x let pool = Pool::builder().build_unchecked(manager); -
The
InitializationErrorandGetTimeouterror types have been merged into a unifiedErrortype. -
The
Pool::configmethod has been replaced with accessor methods onPoolto directly access configuration, such asPool::min_idle. -
The
scheduled_thread_poolcrate has been upgraded from 0.1 to 0.2.
Removed
- The deprecated
Builder::num_threadsmethod has been removed. Construct aScheduledThreadPooland set it viaBuilder::thread_poolinstead.
-
-
0.7.407 Sep 2017Nothing published for this version
-
0.7.310 Jul 2017Nothing published for this version
-
0.7.219 Apr 2017Nothing published for this version
-
0.7.120 Oct 2016Nothing published for this version
-
0.7.015 Apr 2016Nothing published for this version
-
0.6.429 Mar 2016Nothing published for this version
-
0.6.310 Jan 2016Nothing published for this version
-
0.6.208 Jan 2016Nothing published for this version
-
0.6.120 Oct 2015Nothing published for this version
-
0.6.025 Jun 2015Nothing published for this version
-
0.5.831 May 2015Nothing published for this version
-
0.5.704 Apr 2015Nothing published for this version
-
0.5.602 Apr 2015Nothing published for this version
-
0.5.528 Mar 2015Nothing published for this version
-
0.5.426 Mar 2015Nothing published for this version
-
0.5.319 Mar 2015Nothing published for this version
-
0.5.228 Feb 2015Nothing published for this version
-
0.5.120 Feb 2015Nothing published for this version
-
0.5.018 Feb 2015Nothing published for this version
-
0.4.029 Jan 2015Nothing published for this version
-
0.3.024 Jan 2015Nothing published for this version
-
0.2.510 Jan 2015Nothing published for this version
-
0.2.407 Jan 2015Nothing published for this version
-
0.2.303 Jan 2015Nothing published for this version
-
0.2.201 Jan 2015Nothing published for this version
-
0.2.129 Dec 2014Nothing published for this version
-
0.2.016 Dec 2014Nothing published for this version
-
0.1.212 Dec 2014Nothing published for this version
-
0.1.107 Dec 2014Nothing published for this version
-
0.1.023 Nov 2014Nothing published for this version
-
0.0.122 Nov 2014Nothing published for this version