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]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
event-stream = ["futures-util"]
|
event-stream = ["futures-core"]
|
||||||
|
|
||||||
#
|
#
|
||||||
# Shared dependencies
|
# Shared dependencies
|
||||||
@ -36,7 +36,7 @@ event-stream = ["futures-util"]
|
|||||||
bitflags = "1.2"
|
bitflags = "1.2"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
parking_lot = "0.10"
|
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 }
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -7,8 +7,8 @@ use std::{
|
|||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use futures::{future::FutureExt, select, StreamExt};
|
||||||
use futures_timer::Delay;
|
use futures_timer::Delay;
|
||||||
use futures_util::{future::FutureExt, select, StreamExt};
|
|
||||||
|
|
||||||
use crossterm::{
|
use crossterm::{
|
||||||
cursor::position,
|
cursor::position,
|
||||||
|
@ -7,8 +7,8 @@ use std::{
|
|||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use futures::{future::FutureExt, select, StreamExt};
|
||||||
use futures_timer::Delay;
|
use futures_timer::Delay;
|
||||||
use futures_util::{future::FutureExt, select, StreamExt};
|
|
||||||
|
|
||||||
use crossterm::{
|
use crossterm::{
|
||||||
cursor::position,
|
cursor::position,
|
||||||
|
@ -8,7 +8,7 @@ use std::{
|
|||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
use futures_util::{
|
use futures_core::{
|
||||||
stream::Stream,
|
stream::Stream,
|
||||||
task::{Context, Poll},
|
task::{Context, Poll},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user