Rely on futures-core instead of futures-util to speed up compile. (#480)
This commit is contained in:
parent
53afe55612
commit
c01693ff78
@ -27,7 +27,7 @@ all-features = true
|
||||
#
|
||||
[features]
|
||||
default = []
|
||||
event-stream = ["futures-util"]
|
||||
event-stream = ["futures-core"]
|
||||
|
||||
#
|
||||
# Shared dependencies
|
||||
@ -36,7 +36,7 @@ event-stream = ["futures-util"]
|
||||
bitflags = "1.2"
|
||||
lazy_static = "1.4"
|
||||
parking_lot = "0.10"
|
||||
futures-util = { version = "0.3", optional = true, default-features = false }
|
||||
futures-core = { version = "0.3", optional = true, default-features = false }
|
||||
serde = { version = "1.0", features = ["derive"], optional = true }
|
||||
|
||||
#
|
||||
|
@ -7,8 +7,8 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use futures::{future::FutureExt, select, StreamExt};
|
||||
use futures_timer::Delay;
|
||||
use futures_util::{future::FutureExt, select, StreamExt};
|
||||
|
||||
use crossterm::{
|
||||
cursor::position,
|
||||
|
@ -7,8 +7,8 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use futures::{future::FutureExt, select, StreamExt};
|
||||
use futures_timer::Delay;
|
||||
use futures_util::{future::FutureExt, select, StreamExt};
|
||||
|
||||
use crossterm::{
|
||||
cursor::position,
|
||||
|
@ -8,7 +8,7 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use futures_util::{
|
||||
use futures_core::{
|
||||
stream::Stream,
|
||||
task::{Context, Poll},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user