Rename unstable-stream feature to stream (#433)
This commit is contained in:
@@ -19,8 +19,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
# Enables `futures::Stream` implementations for various types.
|
# Enables `futures::Stream` implementations for various types.
|
||||||
# This is an optional feature due to `Stream` not being stable.
|
stream = []
|
||||||
unstable-stream = []
|
|
||||||
|
|
||||||
# Enables **unstable** APIs. Any API exposed by this feature has no backwards
|
# Enables **unstable** APIs. Any API exposed by this feature has no backwards
|
||||||
# compatibility guarantees. In other words, you should not use this feature for
|
# compatibility guarantees. In other words, you should not use this feature for
|
||||||
@@ -38,9 +37,9 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures-core = "0.3"
|
futures-core = { version = "0.3", default-features = false }
|
||||||
futures-sink = "0.3"
|
futures-sink = { version = "0.3", default-features = false }
|
||||||
futures-util = { version = "0.3", default-features = false, features = [] }
|
futures-util = { version = "0.3", default-features = false }
|
||||||
tokio-util = { version = "0.2", features = ["codec"] }
|
tokio-util = { version = "0.2", features = ["codec"] }
|
||||||
tokio = { version = "0.2", features = ["io-util", "sync"] }
|
tokio = { version = "0.2", features = ["io-util", "sync"] }
|
||||||
bytes = "0.5.2"
|
bytes = "0.5.2"
|
||||||
|
|||||||
@@ -1319,7 +1319,7 @@ impl PushPromises {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "unstable-stream")]
|
#[cfg(feature = "stream")]
|
||||||
impl futures_core::Stream for PushPromises {
|
impl futures_core::Stream for PushPromises {
|
||||||
type Item = Result<PushPromise, crate::Error>;
|
type Item = Result<PushPromise, crate::Error>;
|
||||||
|
|
||||||
|
|||||||
@@ -519,7 +519,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "unstable-stream")]
|
#[cfg(feature = "stream")]
|
||||||
impl<T, B> futures_core::Stream for Connection<T, B>
|
impl<T, B> futures_core::Stream for Connection<T, B>
|
||||||
where
|
where
|
||||||
T: AsyncRead + AsyncWrite + Unpin,
|
T: AsyncRead + AsyncWrite + Unpin,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use http::HeaderMap;
|
|||||||
|
|
||||||
use crate::PollExt;
|
use crate::PollExt;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
#[cfg(feature = "unstable-stream")]
|
#[cfg(feature = "stream")]
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::task::{Context, Poll};
|
use std::task::{Context, Poll};
|
||||||
|
|
||||||
@@ -448,7 +448,7 @@ impl RecvStream {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "unstable-stream")]
|
#[cfg(feature = "stream")]
|
||||||
impl futures_core::Stream for RecvStream {
|
impl futures_core::Stream for RecvStream {
|
||||||
type Item = Result<Bytes, crate::Error>;
|
type Item = Result<Bytes, crate::Error>;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ authors = ["Carl Lerche <me@carllerche.com>"]
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
h2 = { path = "../..", features = ["unstable-stream", "unstable"] }
|
h2 = { path = "../..", features = ["stream", "unstable"] }
|
||||||
|
|
||||||
bytes = "0.5"
|
bytes = "0.5"
|
||||||
env_logger = "0.5.9"
|
env_logger = "0.5.9"
|
||||||
|
|||||||
Reference in New Issue
Block a user