refactor(lib): rename 'stream' feature to 'unstable-stream'

This commit is contained in:
Sean McArthur
2019-09-11 16:02:00 -07:00
parent cea3589ef7
commit 2b0405c48c
4 changed files with 41 additions and 32 deletions

View File

@@ -6,7 +6,7 @@
//! connections.
//! - Utilities like `poll_fn` to ease creating a custom `Accept`.
#[cfg(feature = "stream")]
#[cfg(feature = "unstable-stream")]
use futures_core::Stream;
use crate::common::{Pin, task::{self, Poll}};
@@ -70,9 +70,9 @@ where
///
/// # Unstable
///
/// This function requires enabling the unstable `stream` feature in your
/// This function requires enabling the `unstable-stream` feature in your
/// `Cargo.toml`.
#[cfg(feature = "stream")]
#[cfg(feature = "unstable-stream")]
pub fn from_stream<S, IO, E>(stream: S) -> impl Accept<Conn = IO, Error = E>
where
S: Stream<Item = Result<IO, E>>,