Rename 'unstable-stream' feature to 'stream' (#733)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user