Skip to content

Commit

Permalink
chore: Establish MSRV as 1.70 (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>

Close #89

---------

Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Aug 26, 2024
1 parent a1d62d9 commit 2341753
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

env:
# Minimum Supported Rust Version for backon
BACKON_MSRV: "1.70"

jobs:
check:
runs-on: ubuntu-latest
Expand All @@ -22,6 +26,18 @@ jobs:
- name: Clippy
run: cargo clippy --all-features --all-targets -- -D warnings

msrv-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: rustup toolchain install ${BACKON_MSRV}
- name: Check MSRV
run: cargo +${BACKON_MSRV} build
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: full

unit:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
authors = ["Xuanwo <github@xuanwo.io>"]
description = "Retry with backoff without effort."
documentation = "https://docs.rs/backon"
edition = "2021"
license = "Apache-2.0"
name = "backon"
repository = "https://github.com/Xuanwo/backon"
rust-version = "1.70"
version = "0.5.0"

[package.metadata.docs.rs]
Expand All @@ -18,8 +18,8 @@ targets = [
]

[features]
gloo-timers-sleep = ["dep:gloo-timers", "gloo-timers/futures"]
tokio-sleep = ["dep:tokio", "tokio/time"]
gloo-timers-sleep = ["dep:gloo-timers", "gloo-timers?/futures"]
tokio-sleep = ["dep:tokio", "tokio?/time"]

[dependencies]
fastrand = "2.0.0"
Expand Down

0 comments on commit 2341753

Please sign in to comment.