Skip to content

0.5.0

Compare
Choose a tag to compare
@djc djc released this 15 Nov 22:03
· 117 commits to main since this release

After 7 months, there is finally a new release of bb8, the fully-featured connection pool for (tokio-based) async connections. This release took a while due to issues with hanging connections (described in #67), where some recent fixes appear to have solved the reported issues. While this release depends on tokio 0.2, I will release a 0.6 set of releases soon which relies on tokio 0.3 instead (update: released). Maintenance of the 0.5 branch will continue for a while, depending on the uptake of tokio 0.3 in the ecosystem.

Breaking changes:

  • ConnectionManager::is_valid() now takes a &mut PooledConnection<'_, M::Connection>
  • The run() method was removed in favor of the more ergonomic get() method

Other changes:

  • Switch to blocking parking_lot::Mutex instead of tokio's async Mutex (fixes #74)
  • Add basic documentation (#62, thanks to @pksunkara)
  • Reduced dependencies
  • bb8-redis: disable default features in redis dependency (#77, thanks to @x04)
  • The State type became non-exhaustive
  • The internal structure has been substantially reworked to make it easier to reason about