diff --git a/CHANGELOG.md b/CHANGELOG.md index fc84cb9bd..708f3982f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview ## [Unreleased] +## Added + +- Added `pin::pin_project` attribute macro as unstable. +- Added `pin::pinned_drop` attribute macro as unstable. +- Added `pin::project` attribute macro as unstable. +- Added `pin::project_ref` attribute macro as unstable. +- Added `pin::UnsafeUnpin` trait as unstable. + # [0.99.8] - 2019-09-28 ## Changed diff --git a/Cargo.toml b/Cargo.toml index f14740416..bed3ce57b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,8 +21,8 @@ features = ["docs"] rustdoc-args = ["--cfg", "feature=\"docs\""] [features] -docs = ["broadcaster"] -unstable = ["broadcaster"] +docs = ["broadcaster", "pin-project"] +unstable = ["broadcaster", "pin-project"] [dependencies] async-macros = "1.0.0" @@ -43,6 +43,7 @@ pin-utils = "0.1.0-alpha.4" slab = "0.4.2" kv-log-macro = "1.0.4" broadcaster = { version = "0.2.6", optional = true, default-features = false, features = ["default-channels"] } +pin-project = { version = "0.4.1", optional = true } [dev-dependencies] femme = "1.2.0" diff --git a/src/pin.rs b/src/pin.rs index b0824575f..7d80e1ee4 100644 --- a/src/pin.rs +++ b/src/pin.rs @@ -4,3 +4,18 @@ #[doc(inline)] pub use std::pin::Pin; + +#[doc(inline)] +pub use pin_project::pin_project; + +#[doc(inline)] +pub use pin_project::pinned_drop; + +#[doc(inline)] +pub use pin_project::project; + +#[doc(inline)] +pub use pin_project::project_ref; + +#[doc(inline)] +pub use pin_project::UnsafeUnpin;