Rename 'stream' feature to 'unstable-stream'
This commit is contained in:
@@ -24,7 +24,7 @@ branch = "master"
|
||||
[features]
|
||||
# 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
|
||||
# compatibility guarantees. In other words, you should not use this feature for
|
||||
|
||||
@@ -1306,7 +1306,7 @@ impl PushPromises {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "stream")]
|
||||
#[cfg(feature = "unstable-stream")]
|
||||
impl futures_core::Stream for PushPromises {
|
||||
type Item = Result<PushPromise, crate::Error>;
|
||||
|
||||
|
||||
@@ -477,7 +477,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "stream")]
|
||||
#[cfg(feature = "unstable-stream")]
|
||||
impl<T, B> futures_core::Stream for Connection<T, B>
|
||||
where
|
||||
T: AsyncRead + AsyncWrite + Unpin,
|
||||
|
||||
@@ -7,7 +7,7 @@ use http::HeaderMap;
|
||||
|
||||
use crate::PollExt;
|
||||
use std::fmt;
|
||||
#[cfg(feature = "stream")]
|
||||
#[cfg(feature = "unstable-stream")]
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
|
||||
@@ -448,7 +448,7 @@ impl RecvStream {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "stream")]
|
||||
#[cfg(feature = "unstable-stream")]
|
||||
impl futures_core::Stream for RecvStream {
|
||||
type Item = Result<Bytes, crate::Error>;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Carl Lerche <me@carllerche.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
h2 = { path = "../..", features = ["stream", "unstable"] }
|
||||
h2 = { path = "../..", features = ["unstable-stream", "unstable"] }
|
||||
|
||||
bytes = "0.4.7"
|
||||
env_logger = "0.5.9"
|
||||
|
||||
Reference in New Issue
Block a user