Skip to content

Commit a8be430

Browse files
authored
Merge pull request #263 from blackbeam/release-0.33.0
Release 0.33.0
2 parents 7c221d7 + e5b07df commit a8be430

File tree

25 files changed

+617
-467
lines changed

25 files changed

+617
-467
lines changed

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT/Apache-2.0"
77
name = "mysql_async"
88
readme = "README.md"
99
repository = "https://github.com/blackbeam/mysql_async"
10-
version = "0.32.2"
10+
version = "0.33.0"
1111
exclude = ["test/*"]
1212
edition = "2018"
1313
categories = ["asynchronous", "database"]
@@ -21,9 +21,9 @@ futures-util = "0.3"
2121
futures-sink = "0.3"
2222
keyed_priority_queue = "0.4"
2323
lazy_static = "1"
24-
lru = "0.11.0"
24+
lru = "0.12.0"
2525
mio = { version = "0.8.0", features = ["os-poll", "net"] }
26-
mysql_common = { version = "0.30", default-features = false }
26+
mysql_common = { version = "0.31", default-features = false }
2727
once_cell = "1.7.2"
2828
pem = "3.0"
2929
percent-encoding = "2.1.0"
@@ -85,6 +85,7 @@ default = [
8585
"mysql_common/frunk",
8686
"derive",
8787
"native-tls-tls",
88+
"binlog",
8889
]
8990
default-rustls = [
9091
"flate2/rust_backend",
@@ -94,6 +95,7 @@ default-rustls = [
9495
"mysql_common/frunk",
9596
"derive",
9697
"rustls-tls",
98+
"binlog",
9799
]
98100
minimal = ["flate2/zlib"]
99101
native-tls-tls = ["native-tls", "tokio-native-tls"]
@@ -107,6 +109,7 @@ rustls-tls = [
107109
tracing = ["dep:tracing"]
108110
derive = ["mysql_common/derive"]
109111
nightly = []
112+
binlog = ["mysql_common/binlog"]
110113

111114
[lib]
112115
name = "mysql_async"

src/buffer_pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// modified, or distributed except according to those terms.
88

99
use crossbeam::queue::ArrayQueue;
10-
use std::{mem::replace, ops::Deref, sync::Arc};
10+
use std::{mem::take, ops::Deref, sync::Arc};
1111

1212
#[derive(Debug)]
1313
pub struct BufferPool {
@@ -93,6 +93,6 @@ impl Deref for PooledBuf {
9393

9494
impl Drop for PooledBuf {
9595
fn drop(&mut self) {
96-
self.1.put(replace(&mut self.0, vec![]))
96+
self.1.put(take(&mut self.0))
9797
}
9898
}

src/conn/binlog_stream.rs

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)