Skip to content

Commit

Permalink
Release 0.4.0-alpha.1
Browse files Browse the repository at this point in the history
This temporarily moves the document of attribute macros to pin-project-internal.
  • Loading branch information
taiki-e committed Aug 11, 2019
1 parent c04b7b0 commit 1276ad9
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 375 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Unreleased

# 0.4.0-alpha.1 - 2019-08-11

* **Pin projection has become a safe operation.**

* `#[unsafe_project]` has been replaced with `#[pin_project]`.

* The `Unpin` argument has been removed - an `Unpin` impl is now generated by default.

* Drop impls must be specified with `#[pinned_drop]` instead of via a normal `Drop` impl.

* `Unpin` impls must be specified with an impl of `UnsafeUnpin`, instead of implementing the normal `Unpin` trait.

* Made `#[project]` attribute disabled by default.

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

# 0.3.4 - 2019-07-21

* Improved error messages.
Expand Down
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "pin-project"
# NB: When modifying, also modify html_root_url in lib.rs
version = "0.3.4"
version = "0.4.0-alpha.1"
authors = ["Taiki Endo <[email protected]>"]
edition = "2018"
license = "Apache-2.0/MIT"
description = "An attribute that creates a projection struct covering all the fields."
description = "A crate for safe and ergonomic pin-projection."
repository = "https://github.com/taiki-e/pin-project"
documentation = "https://docs.rs/pin-project/"
readme = "README.md"
Expand All @@ -22,7 +22,10 @@ project_attr = ["pin-project-internal/project_attr"]
renamed = ["pin-project-internal/renamed"]

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

[dev-dependencies]
compiletest = { version = "0.3.21", package = "compiletest_rs", features = ["stable", "tmp"] }

[package.metadata.docs.rs]
all-features = true
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
pin-project = "0.3"
pin-project = "0.4.0-alpha.1"
```

The current version of pin-project requires Rust 1.33 or later.
The current pin-project requires Rust 1.33 or later.

## Examples

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.3/pin_project/attr.pin_project.html
[`pin_project`]: https://docs.rs/pin-project/0.4.0-alpha.1/pin_project/attr.pin_project.html

## License

Expand Down
8 changes: 7 additions & 1 deletion pin-project-internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pin-project-internal"
# NB: When modifying, also modify html_root_url in lib.rs
version = "0.3.4"
version = "0.4.0-alpha.1"
authors = ["Taiki Endo <[email protected]>"]
edition = "2018"
license = "Apache-2.0/MIT"
Expand Down Expand Up @@ -29,3 +29,9 @@ proc-macro-crate = { version = "0.1.4", optional = true }
# and proc-macro-crate updates to that new version of toml-rs.
serde = { version = "1.0.97", optional = true }
lazy_static = { version = "1.3.0", optional = true }

[dev-dependencies]
pin-project = { version = "=0.4.0-alpha.1", path = ".." }

[package.metadata.docs.rs]
all-features = true
Loading

0 comments on commit 1276ad9

Please sign in to comment.