Repository navigation
0.4.14
-
Added
!Unpinoption to#[pin_project]attribute for guarantee the type is!Unpin.use pin_project::pin_project; #[pin_project(!Unpin)] struct Struct<T, U> { field: T, }
This is equivalent to use
#[pin]attribute forPhantomPinnedfield.use pin_project::pin_project; use std::marker::PhantomPinned; #[pin_project] struct Struct<T, U> { field: T, #[pin] // Note that using `PhantomPinned` without `#[pin]` attribute has no effect. _pin: PhantomPinned, }
Note: This raises the minimum supported Rust version of this crate from rustc 1.33 to rustc 1.34.
-
Fixed an issue where duplicate
#[project]attributes were ignored. -
Hide generated items from --document-private-items. See #211 for more details.
-
Improve documentation