diff options
author | Alice Ryhl <alice@ryhl.io> | 2020-11-11 23:08:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 23:08:34 +0100 |
commit | 6a0e23c6548df01b7a1b8c65eee8a456d6f0f611 (patch) | |
tree | 3573a107b41060ff58fa7595301574d112b4639a | |
parent | 9d0c0dd22cfa028af63798671c781b1fd83562e2 (diff) |
ci: minimal version check (#3131)
-rw-r--r-- | .github/workflows/ci.yml | 20 | ||||
-rw-r--r-- | tokio/Cargo.toml | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07f6d2a1..9bf58b4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -181,6 +181,26 @@ jobs: - name: "test --workspace --all-features" run: cargo check --workspace --all-features + minimal-versions: + name: minimal-versions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ env.nightly }} + override: true + - name: Install cargo-hack + run: cargo install cargo-hack + - name: "check --all-features -Z minimal-versions" + run: | + # Remove dev-dependencies from Cargo.toml to prevent the next `cargo update` + # from determining minimal versions based on dev-dependencies. + cargo hack --remove-dev-deps --workspace + # Update Cargo.lock to minimal version dependencies. + cargo update -Z minimal-versions + cargo check --all-features + fmt: name: fmt runs-on: ubuntu-latest diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 841f7f4e..c282f704 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -96,7 +96,7 @@ pin-project-lite = "0.1.1" # Everything else is optional... bytes = { version = "0.6.0", optional = true } futures-core = { version = "0.3.0", optional = true } -lazy_static = { version = "1.0.2", optional = true } +lazy_static = { version = "1.4.0", optional = true } memchr = { version = "2.2", optional = true } mio = { version = "0.7.5", optional = true } num_cpus = { version = "1.8.0", optional = true } |