v0.5.0
版本发布时间: 2020-11-16 06:03:06
djc/bb8最新发布版本:v0.8.5(2024-06-14 21:33:59)
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 ergonomicget()
method
Other changes:
- Switch to blocking
parking_lot::Mutex
instead of tokio's asyncMutex
(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