Skip to content

Commit

Permalink
Merge #219
Browse files Browse the repository at this point in the history
219: Implement !Unpin option r=taiki-e a=taiki-e

## Example

```rust
#[pin_project(!Unpin)]
struct Struct<T, U> {
    #[pin]
    pinned: T,
    unpinned: U,
}
```

Also, bump MSRV to 1.34 because `unrestricted_attribute_tokens` requires 1.34 (#202 also requires 1.34).


Closes #108 


Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e committed May 9, 2020
2 parents 9eff271 + c32d15e commit 7824db7
Show file tree
Hide file tree
Showing 51 changed files with 1,506 additions and 537 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
# This is the minimum supported Rust version of this crate.
# When updating this, the reminder to update the minimum supported
# Rust version in README.md.
- build: 1.33.0
rust: 1.33.0
- build: 1.34.0
rust: 1.34.0
- build: 1.36.0
rust: 1.36.0
- build: 1.37.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
[docs-url]: https://docs.rs/pin-project
[license-badge]: https://img.shields.io/crates/l/pin-project.svg
[license]: #license
[rustc-badge]: https://img.shields.io/badge/rustc-1.33+-lightgray.svg
[rustc-url]: https://blog.rust-lang.org/2019/02/28/Rust-1.33.0.html
[rustc-badge]: https://img.shields.io/badge/rustc-1.34+-lightgray.svg
[rustc-url]: https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html

A crate for safe and ergonomic pin-projection.

Expand All @@ -29,7 +29,7 @@ Add this to your `Cargo.toml`:
pin-project = "0.4"
```

The current pin-project requires Rust 1.33 or later.
The current pin-project requires Rust 1.34 or later.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo "Running 'cargo fmt -- --check'"
cargo +nightly fmt --all -- --check

echo "Running 'cargo clippy'"
cargo +nightly clippy --all --all-features
cargo +nightly clippy --all --all-features --all-targets

echo "Running 'cargo test'"
cargo +nightly test --all --all-features
Expand Down
Loading

0 comments on commit 7824db7

Please sign in to comment.