Skip to content

Commit

Permalink
Merge pull request blackbeam#263 from blackbeam/release-0.33.0
Browse files Browse the repository at this point in the history
Release 0.33.0
  • Loading branch information
blackbeam authored Nov 8, 2023
2 parents 7c221d7 + e5b07df commit a8be430
Show file tree
Hide file tree
Showing 25 changed files with 617 additions and 467 deletions.
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT/Apache-2.0"
name = "mysql_async"
readme = "README.md"
repository = "https://github.com/blackbeam/mysql_async"
version = "0.32.2"
version = "0.33.0"
exclude = ["test/*"]
edition = "2018"
categories = ["asynchronous", "database"]
Expand All @@ -21,9 +21,9 @@ futures-util = "0.3"
futures-sink = "0.3"
keyed_priority_queue = "0.4"
lazy_static = "1"
lru = "0.11.0"
lru = "0.12.0"
mio = { version = "0.8.0", features = ["os-poll", "net"] }
mysql_common = { version = "0.30", default-features = false }
mysql_common = { version = "0.31", default-features = false }
once_cell = "1.7.2"
pem = "3.0"
percent-encoding = "2.1.0"
Expand Down Expand Up @@ -85,6 +85,7 @@ default = [
"mysql_common/frunk",
"derive",
"native-tls-tls",
"binlog",
]
default-rustls = [
"flate2/rust_backend",
Expand All @@ -94,6 +95,7 @@ default-rustls = [
"mysql_common/frunk",
"derive",
"rustls-tls",
"binlog",
]
minimal = ["flate2/zlib"]
native-tls-tls = ["native-tls", "tokio-native-tls"]
Expand All @@ -107,6 +109,7 @@ rustls-tls = [
tracing = ["dep:tracing"]
derive = ["mysql_common/derive"]
nightly = []
binlog = ["mysql_common/binlog"]

[lib]
name = "mysql_async"
Expand Down
4 changes: 2 additions & 2 deletions src/buffer_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// modified, or distributed except according to those terms.

use crossbeam::queue::ArrayQueue;
use std::{mem::replace, ops::Deref, sync::Arc};
use std::{mem::take, ops::Deref, sync::Arc};

#[derive(Debug)]
pub struct BufferPool {
Expand Down Expand Up @@ -93,6 +93,6 @@ impl Deref for PooledBuf {

impl Drop for PooledBuf {
fn drop(&mut self) {
self.1.put(replace(&mut self.0, vec![]))
self.1.put(take(&mut self.0))
}
}
120 changes: 0 additions & 120 deletions src/conn/binlog_stream.rs

This file was deleted.

Loading

0 comments on commit a8be430

Please sign in to comment.