Skip to content

Commit

Permalink
chore: set rust-version in Cargo.toml (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun authored May 25, 2024
1 parent 6d7da1a commit de96999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- run: cargo fmt --all --check

test:
Expand All @@ -44,59 +42,43 @@ jobs:
- stable
- beta
- nightly

os:
- ubuntu-latest
- windows-latest
- macOS-latest

- macos-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Install Rust (${{ matrix.rust }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

- run: cargo test --all-features

msrv:
name: Check MSRV (${{ matrix.rust }})
needs: [style]
strategy:
matrix:
rust:
- 1.63 # keep in sync with MSRV.md dev doc

os:
- ubuntu-latest

runs-on: ${{ matrix.os }}

rust: [ 1.63 ] # keep in sync with 'rust-version' in Cargo.toml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust (${{ matrix.rust }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}

- run: cargo check --features full

miri:
name: Test with Miri
needs: [style]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@nightly
with:
components: miri

- name: Test
env:
# Can't enable tcp feature since Miri does not support the tokio runtime
Expand All @@ -109,11 +91,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- uses: taiki-e/install-action@cargo-hack

- run: cargo hack --no-dev-deps check --feature-powerset --depth 2

semver:
Expand All @@ -134,7 +113,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@nightly

- run: cargo rustdoc -- --cfg docsrs -D rustdoc::broken-intra-doc-links
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ authors = ["Sean McArthur <sean@seanmonstar.com>"]
keywords = ["http", "hyper", "hyperium"]
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
edition = "2021"
rust-version = "1.63"

[package.metadata.docs.rs]
features = ["full"]
Expand Down

0 comments on commit de96999

Please sign in to comment.