diesel-async
An async extension for Diesel the safe, extensible ORM and Query Builder
0.9.2
12M downloads/mo
#2869 most downloaded on crates.io
weiznich/diesel_async
What this package is like to depend on
Last release 2 months ago
19 Jun 2026
Release timing varies
gaps range from 2 weeks to 11 months
Nearly every release is documented
notes for 24 of 24 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
24 releases · first in 2022
9 releases in the last 12 months
see the full history below
Release timeline
24 releases · Sep 2022 to Jun 2026Releases
latest 24-
0.9.219 Jun 2026Release notes
Open source →Fixed
- Improve the check if a connection is still working in our connection pool implementation by actually loading the response
- Improve mapping of SQL error states to diesel database error kinds for PostgreSQL 18 and newer
New Contributors
- @ajesipow made their first contribution in #293
- @DhineshKrishnan1206 made their first contribution in #294
Full Changelog: v0.9.1...v0.9.2
You can support the development of Diesel by:
- Contributing Code, Documentation or Guides. Checkout the planing for Diesel 2.4 for open tasks.
- Providing knowledge and help to maintain the MySQL/MariaDB backend. This is currently the only in-tree backend that is not used by any maintainers, so having someone around that actually uses this backend would be very helpful for the Diesel project.
- Answering questions in our discussion forum
- Reporting bugs in our issue tracker
- Helping triaging issues in our issue tracker
- Sponsoring the maintainers.
Release notes
Open source →- Improve the check if a connection is still working in our connection pool implementation by actually loading the response
- Improve mapping of SQL error states to diesel database error kinds for PostgreSQL 18 and newer
-
0.9.105 Jun 2026Release notes
Open source →Fixed
- Correctly check if a connection is a broken state (e.g. has an open transaction) for the mobc pool implementation
Full Changelog: v0.9.1...v0.9.1
You can support the development of Diesel by:
- Contributing Code, Documentation or Guides. Checkout the planing for Diesel 2.4 for open tasks.
- Providing knowledge and help to maintain the MySQL/MariaDB backend. This is currently the only in-tree backend that is not used by any maintainers, so having someone around that actually uses this backend would be very helpful for the Diesel project.
- Answering questions in our discussion forum
- Reporting bugs in our issue tracker
- Helping triaging issues in our issue tracker
- Sponsoring the maintainers.
Release notes
Open source →- Correctly check if a connection is a broken state (e.g. has an open transaction) for the mobc pool implementation
-
0.9.030 Apr 2026Release notes
Open source →Changes
- Change all transaction related functions to accept an real async closure instead of
the scoped boxed variant. This change requires adujsting all call sides of transaction
based functions fromconn.transaction(|conn| async move {/* your code */}.scoped_boxed())
toconn.transaction(async |conn| /* your code */)
Fixed
- Fixed an unsound access to padding values while deserializing Date/Time values in the mysql backend
Thanks to @paolobarbolini for finding this issue.
You can support the development of Diesel by:
- Contributing Code, Documentation or Guides. Checkout the planing for Diesel 2.4 for open tasks.
- Providing knowledge and help to maintain the MySQL/MariaDB backend. This is currently the only in-tree backend that is not used by any maintainers, so having someone around that actually uses this backend would be very helpful for the Diesel project.
- Answering questions in our discussion forum
- Reporting bugs in our issue tracker
- Helping triaging issues in our issue tracker
- Sponsoring the maintainers.
Full Changelog: v0.8.0...v0.9.0
Release notes
Open source →- Change all transaction related functions to accept an real async closure instead of
the scoped boxed variant. This change requires adujsting all call sides of transaction
based functions from
conn.transaction(|conn| async move {/* your code */}.scoped_boxed())toconn.transaction(async |conn| /* your code */) - Fixed an unsound access to padding values while deserializing Date/Time values in the mysql backend Thanks to Paolo Barbolini for finding this issue.
- Change all transaction related functions to accept an real async closure instead of
-
0.8.020 Mar 2026Release notes
Open source →What's Changed
- Added support for UpdateAndFetchResults for
SyncConnectionWrapper, allowing to usesave_changes - Bumped supported deadpool version to 0.13
- Fixed a bug with postgres query pipelining that can cause panics
- Fixed a bug with the
SyncConnectionWrapperthat can cause panics if the future is dropped before completion
You can support the development of Diesel by:
- Contributing Code, Documentation or Guides. Checkout the planing for Diesel 2.4 for open tasks.
- Providing knowledge and help to maintain the MySQL/MariaDB backend. This is currently the only in-tree backend that is not used by any maintainers, so having someone around that actually uses this backend would be very helpful for the Diesel project.
- Answering questions in our discussion forum
- Reporting bugs in our issue tracker
- Helping triaging issues in our issue tracker
- Sponsoring the maintainers.
New Contributors
- @epompeii made their first contribution in #272
- @Hao2203 made their first contribution in #273
- @766974616c79 made their first contribution in #275
- @TheNeikos made their first contribution in #279
- @dav-wolff made their first contribution in #283
Full Changelog: v0.7.4...v0.8.0
Release notes
Open source →- Added support for UpdateAndFetchResults for
SyncConnectionWrapper, allowing to usesave_changes - Bumped supported deadpool version to 0.13
- Fixed a bug with postgres query pipelining that can cause panics
- Fixed a bug with the
SyncConnectionWrapperthat can cause panics if the future is dropped before completion
- Added support for UpdateAndFetchResults for
-
0.7.407 Nov 2025Release notes
Open source →What's Changed
Full Changelog: v0.7.3...v0.7.4
You can support the development of Diesel by:
- Contributing Code, Documentation or Guides. Checkout the planing for Diesel 2.4 for open tasks.
- Providing knowledge and help to maintain the MySQL/MariaDB backend. This is currently the only in-tree backend that is not used by any maintainers, so having someone around that actually uses this backend would be very helpful for the Diesel project.
- Answering questions in our discussion forum
- Reporting bugs in our issue tracker
- Helping triaging issues in our issue tracker
- Sponsoring the maintainers.
-
0.7.305 Oct 2025Release notes
Open source →- Another attempt to fix the docs.rs build by @paolobarbolini
Full Changelog: v0.7.2...v0.7.3
-
0.7.202 Oct 2025 -
0.7.102 Oct 2025 -
0.7.002 Oct 2025Release notes
Open source →New features
- Support for diesel 2.3
- Added support for running migrations via
AsyncMigrationHarness - Improved ergonomics of using query pipelining with
AsyncPgConnection - Added the ability to cancel queries using
AsyncMysqlConnection::cancel_token
I would like to sincerely thank all my generous sponsors who have contributed to make this release possible.
Nevertheless is the Diesel project always looking for support. You can help by:
- Contributing Code, Documentation or Guides. Checkout the planing for Diesel 2.4 for open tasks.
- Providing knowledge and help to maintain the MySQL/MariaDB backend. This is currently the only in-tree backend that is not used by any maintainers, so having someone around that actually uses this backend would be very helpful for the Diesel(-async) project.
- Answering questions in our discussion forum
- Reporting bugs in our issue tracker
- Helping triaging issues in our issue tracker
- Sponsoring the maintainers.
Full Changelog: v0.6.0...v0.7.0
Release notes
Open source →- Support for diesel 2.3
- Added support for running migrations via
AsyncMigrationHarness - Improved ergonomics of using query pipelining with
AsyncPgConnection - Added the ability to cancel queries using
AsyncMysqlConnection::cancel_token
-
0.6.103 Jul 2025Release notes
Open source →What's Changed
- Fix building with different feature combinations
You can support the development of diesel-async by contributions or by sponsoring the project on GitHub.
Full Changelog: v0.6.0...v0.6.1
-
0.6.002 Jul 2025Release notes
Open source →- Allow to control the statement cache size
- Minimize dependencies features
- Bump minimal supported mysql_async version to 0.36.0
- Fixing a bug in how we tracked open transaction that could lead to dangling transactions is specific cases
-
0.5.226 Nov 2024Release notes
Open source →- Fixed an issue around transaction cancellation that could lead to connection pools containing connections with dangling transactions
-
0.5.101 Nov 2024Release notes
Open source →- Add crate feature
poolfor extending connection pool implements through external crate - Implement
DerefandDerefMutforAsyncConnectionWrapperto allow using it in an async context as well
- Add crate feature
-
0.5.019 Jul 2024Release notes
Open source →- Added type
diesel_async::pooled_connection::mobc::PooledConnection - MySQL/MariaDB now use
CLIENT_FOUND_ROWScapability to allow consistent behaviour with PostgreSQL regarding return value of UPDATe commands. - The minimal supported rust version is now 1.78.0
- Add a
SyncConnectionWrappertype that turns a sync connection into an async one. This enables SQLite support for diesel-async - Add support for
diesel::connection::Instrumentationto support logging and other instrumentation for any of the provided connection impls. - Bump minimal supported mysql_async version to 0.34
- Added type
-
0.4.101 Sep 2023 -
0.4.001 Sep 2023Release notes
Open source →- Add a
AsyncConnectionWrappertype to turn adiesel_async::AsyncConnectioninto adiesel::Connection. This might be used to execute migrations viadiesel_migrations. - Add some connection pool configurations to specify how connections in the pool should be checked if they are still valid
- Add a
-
0.3.224 Jul 2023Release notes
Open source →- Fix
TinyIntserialization - Check for open transactions before returning the connection to the pool
- Fix
-
0.3.107 Jun 2023 -
0.3.026 May 2023 -
0.2.214 Apr 2023 -
0.2.108 Mar 2023Release notes
Open source →- Dependency updates for
mobcandmysql-asyncto allow newer versions as well - Extend the README
- Improve the version constraint for diesel so that we do not end up using a newer diesel version that's incompatible
- Dependency updates for
-
0.2.016 Dec 2022Release notes
Open source →- #38 Relax the requirements for borrowed captures in the transaction closure
- #41 Remove GAT workarounds from various traits (Raises the MSRV to 1.65)
- #42 Add an additional
AsyncDieselConnectionManagerconstructor that allows to specify a custom connection setup method to allow setting up postgres TLS connections - Relicense the crate under the MIT or Apache 2.0 License
-
0.1.119 Oct 2022 -
0.1.027 Sep 2022