Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config rust-version at Cargo.toml #126

Merged
merged 2 commits into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
seanmonstar marked this conversation as resolved.
Show resolved Hide resolved

- 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