Releases: taiki-e/pin-project
Releases · taiki-e/pin-project
0.4.15
0.4.14
-
Added
!Unpin
option 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 forPhantomPinned
field.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
0.4.13
0.4.12
0.4.11
0.4.10
- Added
project_replace
method and#[project_replace]
attribute.
project_replace
method is optional and can be enabled by passing theReplace
argument to#[pin_project]
attribute.
See the documentation for more details.