Skip to content

Commit 60e8397

Browse files
committed
chore: Remove futures package
futures_util is already depended on by tokio
1 parent 950e63e commit 60e8397

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ thiserror = "1.0"
2222
tokio = { version = "1.8", features = ["parking_lot", "rt", "sync", "io-util", "process", "macros", "fs"], default-features = false, optional = true }
2323
tracing = "0.1"
2424
which = "4.0"
25-
futures = { version = "0.3", optional = true }
25+
futures-util = { version = "0.3", optional = true }
2626

2727
[dev-dependencies]
2828
test-log = { version = "0.2", default-features = false, features = ["trace"] }
@@ -32,4 +32,4 @@ tracing-subscriber = { version = "0.3", default-features = false, features = ["e
3232

3333
[features]
3434
default = []
35-
tokio-process = ["tokio", "futures"]
35+
tokio-process = ["tokio", "futures-util"]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub async fn new_default_process_async_with_migrations<F>(
168168
migrate: F,
169169
) -> TmpPostgrustResult<asynchronous::ProcessGuard>
170170
where
171-
F: for<'r> Fn(&'r str) -> futures::future::BoxFuture<'r, Result<(), Box<dyn std::error::Error + Send + Sync>>>,
171+
F: for<'r> Fn(&'r str) -> futures_util::future::BoxFuture<'r, Result<(), Box<dyn std::error::Error + Send + Sync>>>,
172172
{
173173
let factory_mutex = TOKIO_POSTGRES_FACTORY
174174
.get_or_try_init(|| async {
@@ -318,7 +318,7 @@ impl TmpPostgrustFactory {
318318
migrate: F,
319319
) -> TmpPostgrustResult<()>
320320
where
321-
F: for<'r> Fn(&'r str) -> futures::future::BoxFuture<'r, Result<(), Box<dyn std::error::Error + Send + Sync>>>,
321+
F: for<'r> Fn(&'r str) -> futures_util::future::BoxFuture<'r, Result<(), Box<dyn std::error::Error + Send + Sync>>>,
322322
{
323323
let process = self.start_postgresql(&self.cache_dir)?;
324324

0 commit comments

Comments
 (0)