Rename 'stream' feature to 'unstable-stream'

This commit is contained in:
Sean McArthur
2019-09-12 11:16:54 -07:00
parent 06a68a76a2
commit 0527f5b72a
5 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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>;

View File

@@ -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,

View File

@@ -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>;

View File

@@ -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"