diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d80b9fb..30d9018 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: @@ -44,22 +42,17 @@ 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: @@ -67,36 +60,25 @@ jobs: 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 @@ -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: @@ -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 diff --git a/Cargo.toml b/Cargo.toml index c5a3c77..9e7758d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ authors = ["Sean McArthur "] 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"]