Skip to content

Commit dbcf417

Browse files
authored
Merge pull request #26 from Turbo87/msrv
Declare minimum supported Rust version
2 parents 2881e3d + 754e699 commit dbcf417

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@ on:
44
push:
55
pull_request:
66

7+
env:
8+
# minimum supported rust version
9+
MSRV: 1.46.0
10+
711
jobs:
812
backend:
913
name: Backend
1014
runs-on: ubuntu-18.04
11-
strategy:
12-
# TODO: [ci] should be true if GitHub Actions supports ""allow failures" on matrix
13-
fail-fast: false
14-
matrix:
15-
rust:
16-
- stable
17-
- beta
18-
- nightly
1915

2016
env:
2117
CARGO_INCREMENTAL: 0
@@ -24,21 +20,18 @@ jobs:
2420
steps:
2521
- uses: actions/checkout@v2
2622

27-
- name: Install ${{ matrix.rust }} Rust
23+
- name: Install Rust v${{ env.MSRV }}
2824
run: |
29-
rustup update ${{ matrix.rust }}
30-
rustup default ${{ matrix.rust }}
25+
rustup default ${{ env.MSRV }}
3126
3227
- name: Install lint tools
33-
if: matrix.rust == 'stable'
3428
run: |
3529
rustup component add rustfmt
3630
rustup component add clippy
3731
3832
- uses: Swatinem/[email protected]
3933

4034
- name: Lint
41-
if: matrix.rust == 'stable'
4235
run: |
4336
cargo fmt -- --check
4437
cargo clippy --all-targets --all-features --all

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ description = "Host a conduit based web application on a hyper server"
77
repository = "https://github.com/jtgeibel/conduit-hyper"
88
readme = "README.md"
99
edition = "2018"
10+
rust-version = "1.46.0"
1011

1112
[dependencies]
1213
bytes = "1"

0 commit comments

Comments
 (0)