Skip to content

Commit 2b69a0b

Browse files
refactor: replace futures with futures-executor
1 parent ccccbcc commit 2b69a0b

3 files changed

Lines changed: 4 additions & 43 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ regex = { version = "1.5.1", default-features = false, features = ["std
3939
# Optional dependencies
4040
rayon = { version = "1.3", optional = true }
4141
csv = { version = "1.1", optional = true }
42-
futures = { version = "0.3", default-features = false, features = ["executor"], optional = true }
42+
futures-executor = { version = "0.3", optional = true }
4343
smol = { version = "2.0", default-features = false, optional = true }
4444
tokio = { version = "1.0", default-features = false, features = [
4545
"rt",
@@ -57,7 +57,6 @@ tempfile = "3.5.0"
5757
approx = "0.5.0"
5858
quickcheck = { version = "1.0", default-features = false }
5959
rand = "0.8"
60-
futures = "0.3"
6160

6261
[badges]
6362
maintenance = { status = "passively-maintained" }
@@ -87,7 +86,7 @@ async = []
8786

8887
# These features enable built-in support for running async benchmarks on each different async
8988
# runtime.
90-
async_futures = ["dep:futures", "async"]
89+
async_futures = ["dep:futures-executor", "async"]
9190
async_smol = ["dep:smol", "async"]
9291
async_tokio = ["dep:tokio", "async"]
9392
async_std = ["dep:async-std", "async"]

src/async_executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub struct FuturesExecutor;
2828
#[cfg(feature = "async_futures")]
2929
impl AsyncExecutor for FuturesExecutor {
3030
fn block_on<T>(&self, future: impl Future<Output = T>) -> T {
31-
futures::executor::block_on(future)
31+
futures_executor::block_on(future)
3232
}
3333
}
3434

0 commit comments

Comments
 (0)