Skip to content

Commit 8bf33a6

Browse files
authored
Clean up CI config (#61)
1 parent 14acb02 commit 8bf33a6

File tree

4 files changed

+62
-70
lines changed

4 files changed

+62
-70
lines changed

.clippy.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.45"

.github/workflows/ci.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
env:
12+
RUSTFLAGS: -Dwarnings
13+
RUST_BACKTRACE: 1
14+
# This is the minimum supported Rust version of this crate.
15+
# When updating this, the reminder to update the minimum supported
16+
# Rust version in README.md and .clippy.toml.
17+
minrust: 1.45.2
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v1
24+
- name: Install Rust
25+
run: rustup update stable
26+
- run: cargo test --all-features
27+
28+
minrust:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Install Rust
33+
run: rustup update ${{ env.minrust }} && rustup default ${{ env.minrust }}
34+
- run: cargo build --all-features
35+
36+
fmt:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v1
40+
- name: Install Rust
41+
run: rustup update stable
42+
- run: cargo fmt --all -- --check
43+
44+
clippy:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v1
48+
- name: Install Rust
49+
run: rustup update stable
50+
- run: cargo clippy --all-features
51+
52+
docs:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v2
56+
- name: Install Rust
57+
run: rustup update nightly && rustup default nightly
58+
- run: cargo doc --no-deps --all-features
59+
env:
60+
RUSTDOCFLAGS: -Dwarnings

.github/workflows/main.yml

-70
This file was deleted.

async-stream/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ caller.
151151
[`Stream`]: https://docs.rs/futures-core/*/futures_core/stream/trait.Stream.html
152152

153153
## Supported Rust Versions
154+
154155
`async-stream` is built against the latest stable release. The minimum supported version is 1.45 due to [function-like procedural macros in expression, pattern, and statement positions](https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html#stabilizing-function-like-procedural-macros-in-expressions-patterns-and-statements).
155156

156157
## License

0 commit comments

Comments
 (0)