NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #3889 most downloaded on crates.io
Tokio based asynchronous MySql client library.
Latest stable
0.37.1
Last release 2 months ago
01 Sep 2026
Release timing varies
gaps range from 9 days to 11 months
Most releases are documented
notes for 50 of the last 60 stable releases
4 versions withdrawn
withdrawn after publishing
10 years old
75 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Fix data race in statement cache (see #406)
Fix data race in statement cache (see #406)
Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.37.0...v0.37.1
It was mentioned by @rubenfiszel in #389 that there was another subtle breaking change introduced in v0.37.0 release:
It was mentioned by @rubenfiszel in #389 that there was another subtle breaking change introduced in v0.37.0 release:
It is now an error to give positional parameters to a named query — previously only the DriverError::NamedParametersForPositionalQuery error was emitted and positional-for-named case wasn't covered at all (by the deprecated Params::into_positional function).
In v0.37.0 new DriverError::Params variant was introduced and the positional-for-named case is covered by the new Params::into_values function.
lru to v0.16 by @paolobarbolini in https://github.com/blackbeam/mysql_async/pull/382StatementLike lifetime consistency in Queryable by @ch3pjw in https://github.com/blackbeam/mysql_async/pull/378COM_STMT_BULK_EXECUTE support by @blackbeam in https://github.com/blackbeam/mysql_async/pull/388Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.36.1...v0.37.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fix: bump lru to 0.16.3 (RUSTSEC-2026-0002) by @HatemMn in #390
bump mysql_common to v0.35.4 for blackbeam/rust_mysql_common#170
binlog feature build (#347)mysql_common to v0.35.4 for blackbeam/rust_mysql_common#170Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.36.0...v0.36.1
Simplify socket2 keep alive logic by @serprex in https://github.com/blackbeam/mysql_async/pull/303
lru, make license metadata SPDX compliant, replace futures_util::future::poll_fn with std::future::poll_fn by @paolobarbolini in https://github.com/blackbeam/mysql_async/pull/337lru to v0.14 by @paolobarbolini in https://github.com/blackbeam/mysql_async/pull/339crossbeam with crossbeam-queue by @paolobarbolini in https://github.com/blackbeam/mysql_async/pull/342DriverError::StmtParamsNumberExceedsLimit by @stephen-hlx in https://github.com/blackbeam/mysql_async/pull/327pin-project dependency by @paolobarbolini in https://github.com/blackbeam/mysql_async/pull/341webpki dependency by @paolobarbolini in https://github.com/blackbeam/mysql_async/pull/340ToConnection, Connection, ToConnectionResult public by @smiera in https://github.com/blackbeam/mysql_async/pull/345active_wait_requests metric (fix #335) by @blackbeam in https://github.com/blackbeam/mysql_async/pull/346mysql_async v0.36.0 by @paolobarbolini in https://github.com/blackbeam/mysql_async/pull/343Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.35.1...v0.36.0
Export metrics from crate root by @w4 in https://github.com/blackbeam/mysql_async/pull/325
Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.35.0...v0.35.1
see breaking changes in mysql_common v0.32.0 and v0.34.0
mysql_common v0.32.0 and v0.34.0Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.34.2...v0.35.0
Add support to specify pre-resolved IP addresses for the connection & avoid a DNS lookup by @rjobanp in https://github.com/blackbeam/mysql_async/pull/
Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.34.1...v0.34.2
Fix imports for non-default features by @blackbeam in https://github.com/blackbeam/mysql_async/pull/299
Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.34.0...v0.34.1
Use an explicit priority check by @espindola in https://github.com/blackbeam/mysql_async/pull/271
Transaction with must_use by @petrosagg in https://github.com/blackbeam/mysql_async/pull/290mysql_common features by @blackbeam in https://github.com/blackbeam/mysql_async/pull/297Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.33.0...v0.34.0
Option to set an absolute TTL for connections by @cloneable in https://github.com/blackbeam/mysql_async/pull/258
ResultSetStream types export by @web3creator in https://github.com/blackbeam/mysql_async/pull/264BinlogStreamRequest structure (see #250, blackbeam/rust_mysql_common#96)binlog feature (enabled by default)Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.32.2...v0.33.0
Inline ops that read settings by @miguelff in https://github.com/blackbeam/mysql_async/pull/245
Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.32.1...v0.32.2
fix regression introduced in v0.32.0 (reported by @cloneable in #243)
fix regression introduced in v0.32.0 (reported by @cloneable in #243)
add a set of commands to execute each time Conn::reset or Conn::change_user is performed.
New APIs:
Opts::setupOptsBuilder::setupadd a way to opt out of pooled connection reset:
Pooled connection reset is now the default but comes with a performance cost. Please read the docs on PoolOpts::with_reset_connection
New APIs:
PoolOpts::with_reset_connectionPoolOpts::reset_connectionConn::reset_connectionFull Changelog: https://github.com/blackbeam/mysql_async/compare/v0.32.0...v0.32.1
please look into [mysql_common v0.30.1 release notes][1] for the list of breaking changes
FromRow and FromValue derive macros (see mysql_common crate-level docs)Opts::client_found_rows setting to return found rows when writing to the database (by @pimeys in #236)mysql_clear_password support is implemented (opt-in via Opts::enable_cleartext_plugin)COM_CHANGE_USER is now supported (via Conn::change_user function)Poll will now reset acquired connections (see #240)Conn::reset will now falls back to COM_CHANGE_USER instead of reconnectingFull Changelog: https://github.com/blackbeam/mysql_async/compare/v0.31.3...v0.32.2
Add support for tracing by @cloneable in https://github.com/blackbeam/mysql_async/pull/224
Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.31.2...v0.31.3
* #217 fixes result set terminator detection and parsing problems reported by @xudong963
Remove waker from wait list when GetConn is dropped by @cloneable in https://github.com/blackbeam/mysql_async/pull/216
Implemented rustls support, fixes #195 by @TobiasDeBruijn in #209
Full Changelog: https://github.com/blackbeam/mysql_async/compare/v0.30.0...v0.31.0
thanks to @glittershark the driver is now able to use raw bytes as a query (suggested in #194 and implemented in #203, #204)
mysql_common version bumped to 0.28.0, this means that now there is another set of enabled mysql_common features:
mysql_common version bumped to 0.28.0, this means that now there is another set of enabled mysql_common features:
mysql_common/chrono – disabled due to RUSTSEC-2020-0159mysql_common/time replaced with mysql_common/time03mysql_common/bigdecimal replaced with mysql_common/bigdecimal03You should be able to redefine this features in your Cargo.toml.
Also note, that mysql_async::time and mysql_async::uuid reexports are now removed. Please use direct dependencies in your Cargo.toml
Conn::perform_auth_switch that was broken in e18f47d (reported by @bfjnaude in #173)Conn::drop (reported by @WGH- in #171)\mio bumped to 0.8lru bumped to 0.7pem bumped to 1.0This release adds streaming support to the QueryResult (thanks to @nappa85, @dodomorandi). Namely it adds two new methods:
This release adds streaming support to the QueryResult (thanks to @nappa85, @dodomorandi).
Namely it adds two new methods:
QueryResult::stream – to stream the current result set,QueryResult::stream_and_drop – to stream the current result set and ignore subsequent sets.Also this release adds a few convenience methods into Query and Queryable traits (they are based on QueryResult::stream_and_drop):
Query::stream – executes a query/statement and streams the first result set ignoring subsequent sets,Queryable::query_stream – performs a query and streams the first result set ignoring subsequent sets,Queryable::exec_stream – executes a statement and streams the first result set ignoring subsequent sets.(See #166, #90)
it is now possible to register as a slave and subscribe to a binlog event stream (see [Conn::get_binlog_stream][1] and [this test][2])
New features:
Conn::get_binlog_stream and this test)mysql_old_password plugin support was added (see OptsBuilder::secure_auth)max_allowed_packet and wait_timeout was added (see #151)FromRow implementation was added for frunk::HList. This allows to perform row-to-tuple conversion for tuples of arbitrary arity (using HCons::into_tuple2)Improvements:
Other:
Conn::last_ok_packetcrate::BoxFuture to futures_core::future::BoxFutureNothing published for this version
Now the StatementLike trait is usable in more contexts;
StatementLike trait is usable in more contexts;# Fixes * Backports #149 from v0.27.x
named pipes are temporary disabled (see tokio-rs/tokio#3388)
pem certs are now allowed in SslOpts::with_root_cert_pathBackport fixes from [v0.26.0][1].
Backport fixes from v0.26.0.
Deref was implemented for Transaction (see #127)
Changes and fixes:
Deref<Target=Conn> was implemented for Transaction (see #127)blackbeam/rust-mysql-simple#248 was ported to mysql_async
QueryResult::new is now public (by @IvanChepurnyi in #119)
QueryResult::new is now public (by @IvanChepurnyi in #119)library switched to non-consuming API:
library switched to non-consuming API:
// pre 0.24.0:
let conn = conn.query_drop("DO 1").await?;
// 0.24.0:
conn.query_drop("DO 1").await?;
Queryable trait was updated and now it is more convenient to work with usual single-result sets.
Use Queryable::query_iter and Queryable::exec_iter if you need more flexibility.
Query trait was introduced. It allows you to run queries directly on a Pool and to create 'static QueryResults
Thick Stmt structure was removed in favor of the Statement structure, which is a thin wrapper over raw statement identifier and metadata.
Nothing published for this version
Ignore NotConnected (ENOTCONN) in Stream::close
mysql_common was updated (see breaking changes in [mysql_common v0.21.0][1])
Breaking changes:
Fixes:
Nothing published for this version
Nothing published for this version
pool was simplified by @jonhoo (see #92, #97);
Nothing published for this version
see notes on release v0.21.0-alpha.1;
Changes:
tokio crate version was updated to 0.2;bytes crate version was updated to 0.5.2;mysql_common crate version was updated to 0.20.0;codec replaced by mysql_common codec;
Changes:
mysql_common was updated:
OptsBuilder::compression);falure was replaced by thiserror (by @udoprog in #78);PoolOptions structure was introduced;inactive_connection_ttl and ttl_check_interval options were introduced.pin-project, futures-*, and tokio* versions bumped (#75).
pin-project, futures-*, and tokio* versions bumped (#75).Support for std::future and async/await was added by @jonhoo
std::future and async/await was added by @jonhoo (#71)WhiteListFsLocalInfileHandler was switched from mio to tokio::File, mio dependency was removed (#61, #62 by @travismiller)
WhiteListFsLocalInfileHandler was switched from mio to tokio::fs::File, mio dependency was removed (#61, #62 by @travismiller)Pool was reimplemented to be fully async (#66 by @jonhoo, #70 by @udoprog)* fix #51 * fix #53 * fix #54 * fix #58
Protocoland ConnectionLike traits are now in prelude (see #48)
Protocoland ConnectionLike traits are now in prelude (see #48)mysql_common bumped to the latest versionnew_conn is called (see #45)Nothing published for this version
new option: SslOpts::set_danger_accept_invalid_certs(..).
SslOpts::set_danger_accept_invalid_certs(..).PoolConstraints structure is published (see #34)
PoolConstraints structure is published (see #34)error_chain now replaced by failure (fix #30);
error_chain now replaced by failure (fix #30);AuthSwitchRequest is implemented (hopefully fix #33);from_url<T: AsRef<str>>(url: T) constructor is added to the Pool.New methods: QueryResult::columns(..) and QueryResult::columns_ref(..) (fix #31)
Fixed issues:
QueryResult::columns(..) and QueryResult::columns_ref(..) (fix #31)SslOpts (fix #32)Improvements:
Nothing published for this version
caching_sha2_password support was implemented;
tokio crate.Packet parsing was cleaned up by @yjh0502 (see #25)
* Fixed #23 (thanks to @jonhoo)
#17 fixed in colaborative work with @jonhoo
#17 fixed in colaborative work with @jonhoo
Fixes params! macro bug discovered in blackbeam/rust-mysql-simple#136;
params! macro bug discovered in blackbeam/rust-mysql-simple#136;Nothing published for this version
SslOpts::set_root_cert_path added.
SslOpts::set_root_cert_path added.Nothing published for this version
Stmt, TextProtocol and BinaryProtocol reexported by @tomc1998 (see #12)
Stmt, TextProtocol and BinaryProtocol reexported by @tomc1998 (see #12)One column per quarter.