Rename 'unstable-stream' feature to 'stream' (#733)

This commit is contained in:
Sean McArthur
2019-12-10 16:55:53 -08:00
committed by GitHub
parent 0f32c4a01a
commit 7631c0390e
6 changed files with 10 additions and 10 deletions

View File

@@ -65,10 +65,10 @@ impl Body {
/// # }
/// ```
///
/// # Unstable
/// # Optional
///
/// This requires the `unstable-stream` feature to be enabled.
#[cfg(feature = "unstable-stream")]
/// This requires the `stream` feature to be enabled.
#[cfg(feature = "stream")]
pub fn wrap_stream<S>(stream: S) -> Body
where
S: futures_core::stream::TryStream + Send + Sync + 'static,

View File

@@ -573,7 +573,7 @@ mod tests {
}
#[test]
#[cfg(feature = "unstable-stream")]
#[cfg(feature = "stream")]
fn try_clone_stream() {
let chunks: Vec<Result<_, ::std::io::Error>> = vec![
Ok("hello"),

View File

@@ -166,7 +166,7 @@
//! - **cookies**: Provides cookie session support.
//! - **gzip**: Provides response body gzip decompression.
//! - **json**: Provides serialization and deserialization for JSON bodies.
//! - **unstable-stream** *(unstable)*: Adds support for `futures::Stream`.
//! - **stream**: Adds support for `futures::Stream`.
//!
//!
//! [hyper]: http://hyper.rs