PackageTrack
Sign in Get early access

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 2022
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 42
  1. 0.8.10 21 Jun 2022

    Nothing published for this version

  2. 0.8.9 30 Jun 2020

    Nothing published for this version

  3. 0.8.8 25 Dec 2019

    Nothing published for this version

  4. 0.8.7 26 Nov 2019

    Nothing published for this version

  5. 0.8.6 19 Oct 2019

    Nothing published for this version

  6. 0.8.5 07 Jun 2019

    Nothing published for this version

  7. 0.8.4 02 Apr 2019
    Release notes

    Added

    • Added a HandleEvent trait used to listen for various events from the pool for monitoring purposes.

    Changed

    • Switched from standard library synchronization primitives to parking_lot.
    Open source →
  8. 0.8.3 03 Nov 2018
    Release notes

    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.
    Open source →
  9. 0.8.2 24 Dec 2017
    Release notes

    Changed

    • Upgraded from log 0.3 to 0.4.
    Open source →
  10. 0.8.1 28 Nov 2017
    Release notes

    Fixed

    • Fixed the example in the README.
    Open source →
  11. 0.8.0 26 Nov 2017
    Release notes

    Changed

    • Pool configuration has changed. Rather than constructing a Config and passing it to the Pool constructor, you now configure a Builder which 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::new method can be used to construct a Pool with 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_fast configuration option has been replaced with separate Builder::build and Builder::build_unchecked methods. The second returns a Pool directly without wrapping it in a Result, 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 InitializationError and GetTimeout error types have been merged into a unified Error type.

    • The Pool::config method has been replaced with accessor methods on Pool to directly access configuration, such as Pool::min_idle.

    • The scheduled_thread_pool crate has been upgraded from 0.1 to 0.2.

    Removed

    • The deprecated Builder::num_threads method has been removed. Construct a ScheduledThreadPool and set it via Builder::thread_pool instead.
    Open source →
  12. 0.7.4 07 Sep 2017

    Nothing published for this version

  13. 0.7.3 10 Jul 2017

    Nothing published for this version

  14. 0.7.2 19 Apr 2017

    Nothing published for this version

  15. 0.7.1 20 Oct 2016

    Nothing published for this version

  16. 0.7.0 15 Apr 2016

    Nothing published for this version

  17. 0.6.4 29 Mar 2016

    Nothing published for this version

  18. 0.6.3 10 Jan 2016

    Nothing published for this version

  19. 0.6.2 08 Jan 2016

    Nothing published for this version

  20. 0.6.1 20 Oct 2015

    Nothing published for this version

  21. 0.6.0 25 Jun 2015

    Nothing published for this version

  22. 0.5.8 31 May 2015

    Nothing published for this version

  23. 0.5.7 04 Apr 2015

    Nothing published for this version

  24. 0.5.6 02 Apr 2015

    Nothing published for this version

  25. 0.5.5 28 Mar 2015

    Nothing published for this version

  26. 0.5.4 26 Mar 2015

    Nothing published for this version

  27. 0.5.3 19 Mar 2015

    Nothing published for this version

  28. 0.5.2 28 Feb 2015

    Nothing published for this version

  29. 0.5.1 20 Feb 2015

    Nothing published for this version

  30. 0.5.0 18 Feb 2015

    Nothing published for this version

  31. 0.4.0 29 Jan 2015

    Nothing published for this version

  32. 0.3.0 24 Jan 2015

    Nothing published for this version

  33. 0.2.5 10 Jan 2015

    Nothing published for this version

  34. 0.2.4 07 Jan 2015

    Nothing published for this version

  35. 0.2.3 03 Jan 2015

    Nothing published for this version

  36. 0.2.2 01 Jan 2015

    Nothing published for this version

  37. 0.2.1 29 Dec 2014

    Nothing published for this version

  38. 0.2.0 16 Dec 2014

    Nothing published for this version

  39. 0.1.2 12 Dec 2014

    Nothing published for this version

  40. 0.1.1 07 Dec 2014

    Nothing published for this version

  41. 0.1.0 23 Nov 2014

    Nothing published for this version

  42. 0.0.1 22 Nov 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive