diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c3fdcb3..aa3d99d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 90da56a1..78f7cff8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pin-project" -version = "0.4.23" +version = "1.0.0-alpha.1" authors = ["Taiki Endo "] 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" } diff --git a/README.md b/README.md index caee4d3d..8369ce31 100644 --- a/README.md +++ b/README.md @@ -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 Struct { 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 diff --git a/examples/README.md b/examples/README.md index 94f49b5a..2d2c4536 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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) diff --git a/pin-project-internal/Cargo.toml b/pin-project-internal/Cargo.toml index dc274faf..7b2828cb 100644 --- a/pin-project-internal/Cargo.toml +++ b/pin-project-internal/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pin-project-internal" -version = "0.4.23" +version = "1.0.0-alpha.1" authors = ["Taiki Endo "] 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" diff --git a/pin-project-internal/src/lib.rs b/pin-project-internal/src/lib.rs index d5282460..1d1a98ee 100644 --- a/pin-project-internal/src/lib.rs +++ b/pin-project-internal/src/lib.rs @@ -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 diff --git a/src/lib.rs b/src/lib.rs index 6712ddc8..7649cada 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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))