diff --git a/src/lib.rs b/src/lib.rs index 01813e4ef..3bb35c014 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,4 +52,8 @@ pub mod stream; pub mod sync; pub mod task; +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] +#[cfg(feature = "unstable")] +pub mod pin; + pub(crate) mod utils; diff --git a/src/pin.rs b/src/pin.rs new file mode 100644 index 000000000..b0824575f --- /dev/null +++ b/src/pin.rs @@ -0,0 +1,6 @@ +//! Types that pin data to its location in memory. +//! +//! For more documentation see [`std::pin`](https://doc.rust-lang.org/std/pin/index.html). + +#[doc(inline)] +pub use std::pin::Pin;