Skip to content

Commit c9730f6

Browse files
committed
chore: upgrade bb8 to v9.0
1 parent e3beac6 commit c9730f6

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

Cargo.toml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@ rust-version = "1.78.0"
1414

1515
[dependencies]
1616
diesel = { version = "~2.2.0", default-features = false, features = [
17-
"i-implement-a-third-party-backend-and-opt-into-breaking-changes",
17+
"i-implement-a-third-party-backend-and-opt-into-breaking-changes",
1818
] }
1919
async-trait = "0.1.66"
2020
futures-channel = { version = "0.3.17", default-features = false, features = [
21-
"std",
22-
"sink",
21+
"std",
22+
"sink",
2323
], optional = true }
2424
futures-util = { version = "0.3.17", default-features = false, features = [
25-
"std",
26-
"sink",
25+
"std",
26+
"sink",
2727
] }
2828
tokio-postgres = { version = "0.7.10", optional = true }
2929
tokio = { version = "1.26", optional = true }
3030
mysql_async = { version = "0.34", optional = true, default-features = false, features = [
31-
"minimal-rust",
31+
"minimal-rust",
3232
] }
3333
mysql_common = { version = "0.32", optional = true, default-features = false }
3434

35-
bb8 = { version = "0.8", optional = true }
35+
bb8 = { version = "0.9", optional = true }
3636
deadpool = { version = "0.12", optional = true, default-features = false, features = [
37-
"managed",
37+
"managed",
3838
] }
3939
mobc = { version = ">=0.7,<0.10", optional = true }
4040
scoped-futures = { version = "0.1", features = ["std"] }
@@ -50,11 +50,11 @@ assert_matches = "1.0.1"
5050
[features]
5151
default = []
5252
mysql = [
53-
"diesel/mysql_backend",
54-
"mysql_async",
55-
"mysql_common",
56-
"futures-channel",
57-
"tokio",
53+
"diesel/mysql_backend",
54+
"mysql_async",
55+
"mysql_common",
56+
"futures-channel",
57+
"tokio",
5858
]
5959
postgres = ["diesel/postgres_backend", "tokio-postgres", "tokio", "tokio/rt"]
6060
sqlite = ["diesel/sqlite", "sync-connection-wrapper"]
@@ -73,24 +73,24 @@ harness = true
7373

7474
[package.metadata.docs.rs]
7575
features = [
76-
"postgres",
77-
"mysql",
78-
"sqlite",
79-
"deadpool",
80-
"bb8",
81-
"mobc",
82-
"async-connection-wrapper",
83-
"sync-connection-wrapper",
84-
"r2d2",
76+
"postgres",
77+
"mysql",
78+
"sqlite",
79+
"deadpool",
80+
"bb8",
81+
"mobc",
82+
"async-connection-wrapper",
83+
"sync-connection-wrapper",
84+
"r2d2",
8585
]
8686
no-default-features = true
8787
rustc-args = ["--cfg", "docsrs"]
8888
rustdoc-args = ["--cfg", "docsrs"]
8989

9090
[workspace]
9191
members = [
92-
".",
93-
"examples/postgres/pooled-with-rustls",
94-
"examples/postgres/run-pending-migrations-with-rustls",
95-
"examples/sync-wrapper",
92+
".",
93+
"examples/postgres/pooled-with-rustls",
94+
"examples/postgres/run-pending-migrations-with-rustls",
95+
"examples/sync-wrapper",
9696
]

src/pooled_connection/bb8.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub type PooledConnection<'a, C> = bb8::PooledConnection<'a, AsyncDieselConnecti
6565
/// Type alias for using [`bb8::RunError`] with [`diesel-async`]
6666
pub type RunError = bb8::RunError<super::PoolError>;
6767

68-
#[async_trait::async_trait]
6968
impl<C> ManageConnection for AsyncDieselConnectionManager<C>
7069
where
7170
C: PoolableConnection + 'static,

0 commit comments

Comments
 (0)