Releases: blackbeam/rust-mysql-simple
Releases · blackbeam/rust-mysql-simple
v25.0.1
What's Changed
- rustls: fix NotValidForName error detection by @blackbeam in #375
- Add pkcs8 and sec1 keys support for rustls TLS backend. by @blackbeam in #381
- Replace lazy_static & once_cell with std::sync::OnceLock by @serprex in #376
New Contributors
Full Changelog: v25.0.0...v25.0.1
v25.0.0
What's Changed
- docs: fix spelling errors by @robjtede in #356
- Fine-tune the Ordering for count by @wang384670111 in #367
- (breaking) Bump mysql_common from 0.30 to 0.31. by @altmannmarcelo in #373
- (breaking) Bump mysql_common from 0.31 to 0.32. by @blackbeam in c40205f
- (breaking) Introduce
binlog
feature. by @blackbeam in 8c7cb13 - (breaking) Proxy mysql_common features. by @blackbeam in 8c7cb13
- (breaking) feat!: ping and select_db return Result by @robjtede in #355
New Contributors
- @robjtede made their first contribution in #356
- @wang384670111 made their first contribution in #367
- @altmannmarcelo made their first contribution in #373
Full Changelog: v24.0.0...v25.0.0
v24.0.0
Breaking changes
- please look into mysql_common v0.30.1 release notes for the list of breaking changes
New features:
- New
FromRow
andFromValue
derive macros (seemysql_common
crate-level docs) mysql_clear_password
auth plugin support implemented (opt-in viaOpts::enable_cleartext_plugin
)COM_CHANGE_USER
is now supported (seeConn::change_user
andPooledConn::change_user
)
Other changes:
- Pool-related options are moved to the new
PoolOpts
structure Poll
will now reset acquired connections (see blackbeam/mysql_async#240)Conn::reset
will now falls back toCOM_CHANGE_USER
instead of reconnecting- thanks to @kornelski, mysql::Result alias is now more user-friendly (see #346)
- there is a workaround for MySql Bug #92954, that affects MySql <5.7:
Affected APIs:OptsBuilder::connect_attrs
now takesOption<HashMap>
- set toNone
to opt-out of connect attrsOpts::get_connect_attrs
now returnsOption
Auto-generated changelog follows
What's Changed
- Use user-friendly Result alias by @kornelski in #346
- Implement mysql_clear_password plugin support by @blackbeam in #345
- Release v24.0.0 by @blackbeam in #351
New Contributors
- @kornelski made their first contribution in #346
Full Changelog: v23.0.1...v24.0.0
v23.0.1
v23.0.0
What's Changed
- breaking bump mysql_common to 0.29 by @blackbeam in #338 (see mysql_common release notes)
- new
default-rustls
andminimal
features (see Crate Features section of the README)
Full Changelog: v22.2.0...v23.0.0
v22.2.0
What's new
- @fulara added two new options into the
Opts
structure & connection URL (see #310):tcp_keepalive_probe_interval_secs
– TCP keep alive interval between subsequent probestcp_keepalive_probe_count
– TCP keep alive probe count
{Conn, Pool}::new
now supports literal URLs.
Please note, that I accidentally violated the semver here 🙇.
Fixes
Other changes
- fix some typos by @cuishuang in #321
- nix dependency is removed by @rtzoeller in #322
- Fix docs for creating a connection from URL by @Zomtir in #327
New Contributors
- @cuishuang made their first contribution in #321
- @rtzoeller made their first contribution in #322
v22.1.0
What's new
- @fulara added a way to control TCP_USER_TIMEOUT for a connection using the new
tcp_user_timeout
option (see #307). Please note that this is only fortarget_os = "linux"
. - @fulara implemented
AsRawFd
forConn
(see #307)
Fixes
- 3c4d4ee fixes the infinite loop in
QueryResult
, that may be triggered by a connectivity error (reported by @fulara in #306)
Other
v22.0.0
What's new
native-tls
is now optional (thanks to @TheDutchMC) and the new rustls-based TLS backend added to the library. Please see the "SSL Support" section in the crate docs.- now the buffer pool is lock-free and optional (controlled by the
buffer-pool
feature). Please see the "Buffer Pool" section in the crate docs.
Breaking
-
mysql_common
version bumped to 0.28.0, this means that now there is another set of enabledmysql_common
features:mysql_common/chrono
– disabled due to RUSTSEC-2020-0159mysql_common/time
replaced withmysql_common/time03
mysql_common/bigdecimal
replaced withmysql_common/bigdecimal03
-
chrono
,time
anduuid
reexports are removed
API changes
QueryResult::next_set
renamed toQueryResult::iter
(QueryResult::next_set
is still available but deprecated). Docstring is updated to clarify the behavior.
Fixes
- turns out previous versions wasn't able to properly bind to the specified bind address in some circumstances. This is now fixed.
Internal improvements
Bumped dependenices
- pem to 1.0.1
- lru to 0.7 (by @Roguelazer)