Skip to content

Commit

Permalink
Release 0.4.0-alpha.9
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 4, 2019
1 parent b75e631 commit 8e085bb
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Unreleased

# 0.4.0-alpha.9 - 2019-09-05

* [Added 'project_into' method to #[pin_project] types][69]. This can be useful when returning a pin projection from a method.
```rust
fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T> {
self.project_into().pinned
}
```

* [Prevented UnpinStruct from appearing in the document by default.][71] See [taiki-e/pin-project#71][71] for more details.

[69]: https://github.com/taiki-e/pin-project/pull/69
[71]: https://github.com/taiki-e/pin-project/pull/69

# 0.4.0-alpha.8 - 2019-09-03

* [Improved document of generated code.][62]. Also added an option to control the document of generated code. See [taiki-e/pin-project#62][62] for more details.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pin-project"
version = "0.4.0-alpha.8"
version = "0.4.0-alpha.9"
authors = ["Taiki Endo <[email protected]>"]
edition = "2018"
license = "Apache-2.0/MIT"
Expand All @@ -24,7 +24,7 @@ project_attr = ["pin-project-internal/project_attr"]
renamed = ["pin-project-internal/renamed"]

[dependencies]
pin-project-internal = { version = "=0.4.0-alpha.8", path = "pin-project-internal", default-features = false }
pin-project-internal = { version = "=0.4.0-alpha.9", path = "pin-project-internal", default-features = false }

[dev-dependencies]
compiletest = { version = "0.3.21", package = "compiletest_rs", features = ["stable", "tmp"] }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
pin-project = "0.4.0-alpha.8"
pin-project = "0.4.0-alpha.9"
```

The current pin-project requires Rust 1.33 or later.
Expand Down Expand Up @@ -58,7 +58,7 @@ impl<T, U> Foo<T, U> {

[Code like this will be generated](doc/struct-example-1.md)

[`pin_project`]: https://docs.rs/pin-project/0.4.0-alpha.8/pin_project/attr.pin_project.html
[`pin_project`]: https://docs.rs/pin-project/0.4.0-alpha.9/pin_project/attr.pin_project.html

## License

Expand Down
4 changes: 2 additions & 2 deletions pin-project-internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pin-project-internal"
version = "0.4.0-alpha.8"
version = "0.4.0-alpha.9"
authors = ["Taiki Endo <[email protected]>"]
edition = "2018"
license = "Apache-2.0/MIT"
Expand Down Expand Up @@ -34,4 +34,4 @@ serde = { version = "1.0.97", optional = true }
lazy_static = { version = "1.3", optional = true }

[dev-dependencies]
pin-project = { version = "0.4.0-alpha.8", path = ".." }
pin-project = { version = "0.4.0-alpha.9", path = ".." }
4 changes: 2 additions & 2 deletions pin-project-internal/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! An interal crate to support pin_project - **do not use directly**

#![recursion_limit = "256"]
#![doc(html_root_url = "https://docs.rs/pin-project-internal/0.4.0-alpha.8")]
#![doc(html_root_url = "https://docs.rs/pin-project-internal/0.4.0-alpha.9")]
#![doc(test(no_crate_inject, attr(deny(warnings, rust_2018_idioms), allow(dead_code))))]
#![warn(unsafe_code)]
#![warn(rust_2018_idioms, unreachable_pub, single_use_lifetimes)]
Expand Down Expand Up @@ -310,7 +310,7 @@ use syn::parse::Nothing;
///
/// [`Pin::as_mut`]: core::pin::Pin::as_mut
/// [`drop`]: Drop::drop
/// [`UnsafeUnpin`]: https://docs.rs/pin-project/0.4.0-alpha.8/pin_project/trait.UnsafeUnpin.html
/// [`UnsafeUnpin`]: https://docs.rs/pin-project/0.4.0-alpha.9/pin_project/trait.UnsafeUnpin.html
/// [`project`]: ./attr.project.html
/// [`pinned_drop`]: ./attr.pinned_drop.html
#[proc_macro_attribute]
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@
//!
//! See [`pin_project`] attribute for more details.
//!
//! [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.8/pin_project_internal/attr.pin_project.html
//! [`pinned_drop`]: https://docs.rs/pin-project-internal/0.4.0-alpha.8/pin_project_internal/attr.pinned_drop.html
//! [`project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.8/pin_project_internal/attr.project.html
//! [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.9/pin_project_internal/attr.pin_project.html
//! [`pinned_drop`]: https://docs.rs/pin-project-internal/0.4.0-alpha.9/pin_project_internal/attr.pinned_drop.html
//! [`project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.9/pin_project_internal/attr.project.html

#![recursion_limit = "256"]
#![doc(html_root_url = "https://docs.rs/pin-project/0.4.0-alpha.8")]
#![doc(html_root_url = "https://docs.rs/pin-project/0.4.0-alpha.9")]
#![doc(test(no_crate_inject, attr(deny(warnings, rust_2018_idioms), allow(dead_code))))]
#![no_std]
#![warn(unsafe_code)]
Expand Down Expand Up @@ -150,7 +150,7 @@ pub use pin_project_internal::project;
/// ```
///
/// [`PhantomPinned`]: core::marker::PhantomPinned
/// [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.8/pin_project_internal/attr.pin_project.html
/// [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.9/pin_project_internal/attr.pin_project.html
#[allow(unsafe_code)]
pub unsafe trait UnsafeUnpin {}

Expand Down

0 comments on commit 8e085bb

Please sign in to comment.