Skip to content

Commit c52c4a7

Browse files
Replace some more futures_util APIs with std variants
1 parent 9079720 commit c52c4a7

File tree

34 files changed

+55
-68
lines changed

34 files changed

+55
-68
lines changed

Cargo.lock

Lines changed: 3 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ sqlx-sqlite = { workspace = true, optional = true }
169169
[dev-dependencies]
170170
anyhow = "1.0.52"
171171
time_ = { version = "0.3.2", package = "time" }
172-
futures = "0.3.19"
172+
futures-util = { version = "0.3.19", default-features = false, features = ["alloc"] }
173173
env_logger = "0.11"
174174
async-std = { workspace = true, features = ["attributes"] }
175175
tokio = { version = "1.15.0", features = ["full"] }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The `fetch` query finalizer returns a stream-like type that iterates through the
326326

327327
```rust
328328
// provides `try_next`
329-
use futures::TryStreamExt;
329+
use futures_util::TryStreamExt;
330330
// provides `try_get`
331331
use sqlx::Row;
332332

examples/mysql/todos/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ workspace = "../../../"
66

77
[dependencies]
88
anyhow = "1.0"
9-
futures = "0.3"
109
sqlx = { path = "../../../", features = [ "mysql", "runtime-tokio", "tls-native-tls" ] }
1110
clap = { version = "4", features = ["derive"] }
1211
tokio = { version = "1.20.0", features = ["rt", "macros"]}

examples/postgres/chat/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ workspace = "../../../"
66

77
[dependencies]
88
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
9-
futures = "0.3.1"
109
tokio = { version = "1.20.0", features = [ "rt-multi-thread", "macros" ] }
1110
ratatui = "0.27.0"
1211
crossterm = "0.27.0"

examples/postgres/json/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ workspace = "../../../"
77
[dependencies]
88
anyhow = "1.0"
99
dotenvy = "0.15.0"
10-
futures = "0.3"
1110
serde = { version = "1", features = ["derive"] }
1211
serde_json = "1"
1312
sqlx = { path = "../../../", features = [ "runtime-tokio", "postgres", "json" ] }

examples/postgres/listen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ workspace = "../../../"
66

77
[dependencies]
88
sqlx = { path = "../../../", features = [ "runtime-tokio", "postgres" ] }
9-
futures = "0.3.1"
9+
futures-util = { version = "0.3.1", default-features = false }
1010
tokio = { version = "1.20.0", features = ["rt-multi-thread", "macros", "time"]}

examples/postgres/listen/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use futures::TryStreamExt;
1+
use futures_util::TryStreamExt;
22
use sqlx::postgres::PgListener;
33
use sqlx::{Executor, PgPool};
44
use std::pin::pin;

examples/postgres/mockable-todos/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ workspace = "../../../"
66

77
[dependencies]
88
anyhow = "1.0"
9-
futures = "0.3"
109
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
1110
clap = { version = "4", features = ["derive"] }
1211
tokio = { version = "1.20.0", features = ["rt", "macros"]}

examples/postgres/todos/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ workspace = "../../../"
66

77
[dependencies]
88
anyhow = "1.0"
9-
futures = "0.3"
109
sqlx = { path = "../../../", features = [ "postgres", "runtime-tokio", "tls-native-tls" ] }
1110
clap = { version = "4", features = ["derive"] }
1211
tokio = { version = "1.20.0", features = ["rt", "macros"]}

0 commit comments

Comments
 (0)