Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.0.0-alpha.1 #278

Merged
merged 1 commit into from
Sep 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased]

## [1.0.0-alpha.1] - 2020-09-22

* [Remove deprecated `#[project]`, `#[project_ref]`, and `#[project_replace]` attributes.](https://github.com/taiki-e/pin-project/pull/265)

Name the projected type by passing an argument with the same name as the method to the `#[pin_project]` attribute instead:
@@ -31,10 +33,12 @@ This project adheres to [Semantic Versioning](https://semver.org).

* [Optimize code generation when used on enums.](https://github.com/taiki-e/pin-project/pull/270)

* Suppress `explicit_outlives_requirements`, `box_pointers`, `clippy::large_enum_variant`, `clippy::pattern_type_mismatch`, and `clippy::implicit_return` lints in generated code.([#276](https://github.com/taiki-e/pin-project/pull/276), [#277](https://github.com/taiki-e/pin-project/pull/277))
* Suppress `explicit_outlives_requirements`, `box_pointers`, `clippy::large_enum_variant`, `clippy::pattern_type_mismatch`, and `clippy::implicit_return` lints in generated code. ([#276](https://github.com/taiki-e/pin-project/pull/276), [#277](https://github.com/taiki-e/pin-project/pull/277))

* Diagnostic improvements.

See also [tracking issue for 1.0 release](https://github.com/taiki-e/pin-project/issues/264).

## [0.4.23] - 2020-07-27

* [Fix compile error with `?Sized` type parameters.][263]
@@ -573,7 +577,8 @@ See also [tracking issue for 0.4 release][21].

Initial release

[Unreleased]: https://github.com/taiki-e/pin-project/compare/v0.4.23...HEAD
[Unreleased]: https://github.com/taiki-e/pin-project/compare/v1.0.0-alpha.1...HEAD
[1.0.0-alpha.1]: https://github.com/taiki-e/pin-project/compare/v0.4.23...v1.0.0-alpha.1
[0.4.23]: https://github.com/taiki-e/pin-project/compare/v0.4.22...v0.4.23
[0.4.22]: https://github.com/taiki-e/pin-project/compare/v0.4.21...v0.4.22
[0.4.21]: https://github.com/taiki-e/pin-project/compare/v0.4.20...v0.4.21
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.23"
version = "1.0.0-alpha.1"
authors = ["Taiki Endo <te316e89@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR MIT"
@@ -29,7 +29,7 @@ members = [
]

[dependencies]
pin-project-internal = { version = "=0.4.23", path = "pin-project-internal", default-features = false }
pin-project-internal = { version = "=1.0.0-alpha.1", path = "pin-project-internal", default-features = false }

[dev-dependencies]
auxiliary-macros = { version = "0.0.0", path = "tests/ui/auxiliary" }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
pin-project = "0.4"
pin-project = "1.0.0-alpha.1"
```

The current pin-project requires Rust 1.34 or later.
@@ -57,7 +57,7 @@ impl<T, U> Struct<T, U> {
See [documentation][docs-url] for more details, and
see [examples] directory for more examples and generated code.

[`pin_project`]: https://docs.rs/pin-project/0.4/pin_project/attr.pin_project.html
[`pin_project`]: https://docs.rs/pin-project/1.0.0-alpha.1/pin_project/attr.pin_project.html
[examples]: examples/README.md
[pin-projection]: https://doc.rust-lang.org/nightly/std/pin/index.html#projections-and-structural-pinning
[struct-default-expanded]: examples/struct-default-expanded.rs
8 changes: 4 additions & 4 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -14,22 +14,22 @@

* [example](unsafe_unpin.rs)
* [generated code](unsafe_unpin-expanded.rs)
* [`UnsafeUnpin` documentation](https://docs.rs/pin-project/0.4/pin_project/trait.UnsafeUnpin.html)
* [`UnsafeUnpin` documentation](https://docs.rs/pin-project/1.0.0-alpha.1/pin_project/trait.UnsafeUnpin.html)

### Manual implementation of `Drop` by `#[pinned_drop]`

* [example](pinned_drop.rs)
* [generated code](pinned_drop-expanded.rs)
* [`#[pinned_drop]` documentation](https://docs.rs/pin-project/0.4/pin_project/attr.pinned_drop.html)
* [`#[pinned_drop]` documentation](https://docs.rs/pin-project/1.0.0-alpha.1/pin_project/attr.pinned_drop.html)

### `project_replace()` method

* [example](project_replace.rs)
* [generated code](project_replace-expanded.rs)
* [`project_replace()` documentation](https://docs.rs/pin-project/0.4/pin_project/attr.pin_project.html#project_replace)
* [`project_replace()` documentation](https://docs.rs/pin-project/1.0.0-alpha.1/pin_project/attr.pin_project.html#project_replace)

### Ensure `!Unpin` by `#[pin_project(!Unpin)]`

* [example](not_unpin.rs)
* [generated code](not_unpin-expanded.rs)
* [`!Unpin` documentation](https://docs.rs/pin-project/0.4/pin_project/attr.pin_project.html#unpin)
* [`!Unpin` documentation](https://docs.rs/pin-project/1.0.0-alpha.1/pin_project/attr.pin_project.html#unpin)
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.23"
version = "1.0.0-alpha.1"
authors = ["Taiki Endo <te316e89@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR MIT"
@@ -25,5 +25,5 @@ quote = "1.0"
syn = { version = "1.0.13", features = ["full", "visit-mut"] }

[dev-dependencies]
pin-project = { version = "0.4.23", path = ".." }
pin-project = { version = "1.0.0-alpha.1", path = ".." }
rustversion = "1.0"
4 changes: 2 additions & 2 deletions pin-project-internal/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! An internal crate to support pin_project - **do not use directly**
#![doc(html_root_url = "https://docs.rs/pin-project-internal/0.4.23")]
#![doc(html_root_url = "https://docs.rs/pin-project-internal/1.0.0-alpha.1")]
#![doc(test(
no_crate_inject,
attr(deny(warnings, rust_2018_idioms, single_use_lifetimes), allow(dead_code))
@@ -471,7 +471,7 @@ use proc_macro::TokenStream;
/// [`Pin::as_mut`]: core::pin::Pin::as_mut
/// [`Pin::set`]: core::pin::Pin::set
/// [`Pin`]: core::pin::Pin
/// [`UnsafeUnpin`]: https://docs.rs/pin-project/0.4/pin_project/trait.UnsafeUnpin.html
/// [`UnsafeUnpin`]: https://docs.rs/pin-project/1.0.0-alpha.1/pin_project/trait.UnsafeUnpin.html
/// [`pinned_drop`]: ./attr.pinned_drop.html
/// [drop-guarantee]: core::pin#drop-guarantee
/// [pin-projection]: core::pin#projections-and-structural-pinning
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
//! [struct-default-expanded]: https://github.com/taiki-e/pin-project/blob/master/examples/struct-default-expanded.rs
#![no_std]
#![doc(html_root_url = "https://docs.rs/pin-project/0.4.23")]
#![doc(html_root_url = "https://docs.rs/pin-project/1.0.0-alpha.1")]
#![doc(test(
no_crate_inject,
attr(deny(warnings, rust_2018_idioms, single_use_lifetimes), allow(dead_code))