Skip to content

Commit

Permalink
Update dependencies and increase MSRV to 1.56
Browse files Browse the repository at this point in the history
  • Loading branch information
parasyte committed Oct 6, 2024
1 parent 8d117e8 commit 1ba6443
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
44 changes: 24 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,7 @@ jobs:
shared-key: common
- name: Cargo check
run: cargo check --workspace
checks_old:
name: Check 1.37.0
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.37.0
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: common
- name: Delete Cargo.lock
run: rm Cargo.lock
- name: Cargo check
run: cargo check --all

lints:
name: Lints
runs-on: ubuntu-latest
Expand All @@ -65,6 +48,7 @@ jobs:
run: cargo doc --workspace --no-deps
- name: Cargo clippy
run: cargo clippy --workspace --tests -- -D warnings

tests:
name: Test
runs-on: ubuntu-latest
Expand All @@ -87,8 +71,28 @@ jobs:
shared-key: common
- name: Cargo test
run: cargo test --workspace

checks_old:
name: Check 1.56.0
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.56.0
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: common
- name: Delete Cargo.lock
run: rm Cargo.lock
- name: Cargo check
run: cargo check --all

tests_old:
name: Test 1.37.0
name: Test 1.56.0
runs-on: ubuntu-latest
needs: [checks, lints]
steps:
Expand All @@ -97,7 +101,7 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.37.0
toolchain: 1.56.0
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
Expand Down
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ description = "Error::sources on stable Rust"
repository = "https://github.com/parasyte/error-iter"
version = "1.0.0"
authors = ["Jay Oster <jay@kodewerx.org>"]
edition = "2018"
edition = "2021"
rust-version = "1.56"
readme = "README.md"
keywords = ["error", "iter", "iterator", "recursive", "sources"]
categories = ["rust-patterns"]
license = "MIT"

# NOTE: This field was first added in Rust 1.56.0
rust-version = "1.37"

[badges]
maintenance = { status = "passively-maintained" }

[dev-dependencies]
thiserror = "=1.0.39"
thiserror = "1"
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ Use [`Error::sources`](https://doc.rust-lang.org/nightly/std/error/trait.Error.h

## MSRV

Supports Rust 1.37.0 and higher.

Compiles on Rust 1.31.0, but does not return the tail source. (Tests fail on anything less than 1.37.0.)
Supports Rust 1.56.0 and higher.

## What is this?

Expand Down

0 comments on commit 1ba6443

Please sign in to comment.