Skip to content

Commit 1803948

Browse files
authored
Assert Send/Sync/Unpin for all public types (#2323)
1 parent aa784fc commit 1803948

File tree

3 files changed

+1843
-3
lines changed

3 files changed

+1843
-3
lines changed

.github/workflows/ci.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,27 @@ jobs:
9494
# Check thread-pool feature (futures, futures-executor)
9595
- run: cargo hack build -p futures -p futures-executor --no-default-features --features std,thread-pool
9696

97-
build:
97+
async-await-msrv:
9898
name: cargo +${{ matrix.rust }} build
9999
strategy:
100100
matrix:
101101
rust:
102102
# This is the minimum Rust version supported by `async-await` feature.
103103
# When updating this, the reminder to update the minimum required version of `async-await` feature in README.md.
104104
- 1.39.0
105+
runs-on: ubuntu-latest
106+
steps:
107+
- uses: actions/checkout@v2
108+
- name: Install Rust
109+
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
110+
- run: cargo install cargo-hack
111+
- run: cargo hack build --workspace --no-dev-deps
112+
113+
build:
114+
name: cargo +${{ matrix.rust }} build
115+
strategy:
116+
matrix:
117+
rust:
105118
- stable
106119
- beta
107120
- nightly

futures/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ futures-sink = { path = "../futures-sink", version = "0.3.12", default-features
2525
futures-util = { path = "../futures-util", version = "0.3.12", default-features = false, features = ["sink"] }
2626

2727
[dev-dependencies]
28-
pin-utils = "0.1.0"
2928
futures-executor = { path = "../futures-executor", features = ["thread-pool"] }
3029
futures-test = { path = "../futures-test" }
31-
tokio = "0.1.11"
3230
assert_matches = "1.3.0"
3331
pin-project = "1.0.1"
32+
pin-utils = "0.1.0"
33+
static_assertions = "1"
34+
tokio = "0.1.11"
3435

3536
[features]
3637
default = ["std", "async-await", "executor"]

0 commit comments

Comments
 (0)