Skip to content

Commit 3a73bf8

Browse files
committed
Make futures-channel dep optional and required for mysql feature
1 parent 38494b8 commit 3a73bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description = "An async extension for Diesel the safe, extensible ORM and Query
1515
[dependencies]
1616
diesel = { version = "2.0.0", default-features = false, features = ["i-implement-a-third-party-backend-and-opt-into-breaking-changes"]}
1717
async-trait = "0.1.51"
18-
futures-channel = { version = "0.3.17", default-features = false, features = ["std", "sink"] }
18+
futures-channel = { version = "0.3.17", default-features = false, features = ["std", "sink"], optional = true }
1919
futures-util = { version = "0.3.17", default-features = false, features = ["std", "sink"] }
2020
tokio-postgres = { version = "0.7.2", optional = true}
2121
tokio = { version = "1", optional = true}
@@ -35,7 +35,7 @@ diesel = { version = "2.0.0", default-features = false, features = ["chrono"]}
3535

3636
[features]
3737
default = []
38-
mysql = ["diesel/mysql_backend", "mysql_async", "mysql_common"]
38+
mysql = ["diesel/mysql_backend", "mysql_async", "mysql_common", "futures-channel"]
3939
postgres = ["diesel/postgres_backend", "tokio-postgres", "tokio", "tokio/rt"]
4040

4141
[[test]]

0 commit comments

Comments
 (0)