diff --git a/src/stream/from_stream.rs b/src/stream/from_stream.rs index 7a262f7..91d3e24 100644 --- a/src/stream/from_stream.rs +++ b/src/stream/from_stream.rs @@ -10,6 +10,7 @@ use std::pin::Pin; /// See also: [`IntoStream`]. /// /// [`IntoStream`]: trait.IntoStream.html +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] pub trait FromStream { /// Creates a value from a stream. /// diff --git a/src/stream/into_stream.rs b/src/stream/into_stream.rs index 42f9529..b291317 100644 --- a/src/stream/into_stream.rs +++ b/src/stream/into_stream.rs @@ -13,6 +13,7 @@ use futures_core::stream::Stream; /// See also: [`FromStream`]. /// /// [`FromStream`]: trait.FromStream.html +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] pub trait IntoStream { /// The type of the elements being iterated over. type Item;