diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2de7e23..19cdd28 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [1.31.0, stable, beta, nightly] + rust: [1.56.0, stable, beta, nightly] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master @@ -39,7 +39,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@1.62.0 + - uses: dtolnay/rust-toolchain@1.70.0 with: components: rustfmt - run: cargo fmt --all --check diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index 98e8f8e..f23d140 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [1.31.0, stable] + rust: [1.56.0, stable] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index d221a73..e195455 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [1.31.0, stable] + rust: [1.56.0, stable] steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@1.62.0 + - uses: dtolnay/rust-toolchain@1.70.0 with: components: rustfmt - run: cargo fmt --all --check diff --git a/Cargo.toml b/Cargo.toml index faaf55d..0a16ebc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ version = "0.3.3" readme = "README.md" exclude = ["/bors.toml", "/ci/*", "/.github/*"] edition = "2018" +rust-version = "1.56.0" [dependencies] proc-macro2 = "1" diff --git a/README.md b/README.md index 9826cdf..3fb9498 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![crate](https://img.shields.io/crates/v/num-derive.svg)](https://crates.io/crates/num-derive) [![documentation](https://docs.rs/num-derive/badge.svg)](https://docs.rs/num-derive) -[![minimum rustc 1.31](https://img.shields.io/badge/rustc-1.31+-red.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) +[![minimum rustc 1.56](https://img.shields.io/badge/rustc-1.56+-red.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) [![build status](https://github.com/rust-num/num-derive/workflows/master/badge.svg)](https://github.com/rust-num/num-derive/actions) Procedural macros to derive numeric traits in Rust. @@ -51,7 +51,7 @@ Release notes are available in [RELEASES.md](RELEASES.md). ## Compatibility -The `num-derive` crate is tested for rustc 1.31 and greater. +The `num-derive` crate is tested for rustc 1.56 and greater. ## License diff --git a/bors.toml b/bors.toml index 4c20337..f44ffa3 100644 --- a/bors.toml +++ b/bors.toml @@ -1,5 +1,5 @@ status = [ - "Test (1.31.0)", + "Test (1.56.0)", "Test (stable)", "Test (beta)", "Test (nightly)", diff --git a/ci/rustup.sh b/ci/rustup.sh index fed3e45..5289138 100755 --- a/ci/rustup.sh +++ b/ci/rustup.sh @@ -5,6 +5,6 @@ set -ex ci=$(dirname $0) -for version in 1.31.0 stable beta nightly; do +for version in 1.56.0 stable beta nightly; do rustup run "$version" "$ci/test_full.sh" done diff --git a/ci/test_full.sh b/ci/test_full.sh index a6b7b3c..d3fe896 100755 --- a/ci/test_full.sh +++ b/ci/test_full.sh @@ -3,7 +3,7 @@ set -e CRATE=num-derive -MSRV=1.31 +MSRV=1.56 get_rust_version() { local array=($(rustc --version));