From 8d68d8e3cd96058de4c6c0ba6f75cf74182bbc8f Mon Sep 17 00:00:00 2001 From: Paul Loyd Date: Mon, 17 Jun 2024 10:39:19 +0400 Subject: [PATCH] feat: specify MSRV --- .github/workflows/ci.yml | 13 +++++++++++++ CHANGELOG.md | 1 + Cargo.toml | 1 + benches/Cargo.toml | 1 + elfo-configurer/Cargo.toml | 1 + elfo-core/Cargo.toml | 1 + elfo-dumper/Cargo.toml | 1 + elfo-logger/Cargo.toml | 1 + elfo-macros-impl/Cargo.toml | 1 + elfo-macros/Cargo.toml | 1 + elfo-network/Cargo.toml | 1 + elfo-pinger/Cargo.toml | 1 + elfo-telemeter/Cargo.toml | 1 + elfo-test/Cargo.toml | 1 + elfo-utils/Cargo.toml | 1 + elfo/Cargo.toml | 1 + examples/Cargo.toml | 1 + 17 files changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70619dea..9ac270e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ env: RUSTFLAGS: -Dwarnings RUST_BACKTRACE: 1 RUST_LOG: elfo + MSRV: 1.76.0 jobs: build: @@ -20,6 +21,18 @@ jobs: - run: rustup show active-toolchain -v - run: cargo build --all-targets --all-features + msrv: + runs-on: ubuntu-latest + env: + RUSTFLAGS: "" # remove -Dwarnings + steps: + - uses: actions/checkout@v4 + - run: rustup toolchain install ${{ env.MSRV }} --profile minimal + - run: rustup override set ${{ env.MSRV }} + - run: rustup show active-toolchain -v + - run: cargo build + - run: cargo build --all-features + rustfmt: runs-on: ubuntu-latest steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index ec8cdaf6..01ee3fb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - ReleaseDate ### Added +- Specify MSRV as 1.76. - logger: log truncation up to the `max_line_size` configuration parameter ([#128]). ### Changed diff --git a/Cargo.toml b/Cargo.toml index 60598326..5a5b8e07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,7 @@ authors = ["Paul Loyd "] license = "MIT" edition = "2021" readme = "README.md" +rust-version = "1.76.0" # update CI if changed [workspace.dependencies] stability = "0.2.0" diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 7bd5f663..f3700de1 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -8,6 +8,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [dev-dependencies] elfo = { path = "../elfo" } diff --git a/elfo-configurer/Cargo.toml b/elfo-configurer/Cargo.toml index ead87d51..b44a6370 100644 --- a/elfo-configurer/Cargo.toml +++ b/elfo-configurer/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-core/Cargo.toml b/elfo-core/Cargo.toml index 86665ef8..f07ca2c1 100644 --- a/elfo-core/Cargo.toml +++ b/elfo-core/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-dumper/Cargo.toml b/elfo-dumper/Cargo.toml index b3189d65..97250218 100644 --- a/elfo-dumper/Cargo.toml +++ b/elfo-dumper/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-logger/Cargo.toml b/elfo-logger/Cargo.toml index a61b06db..b63a3f34 100644 --- a/elfo-logger/Cargo.toml +++ b/elfo-logger/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-macros-impl/Cargo.toml b/elfo-macros-impl/Cargo.toml index 3d128ab1..a4fd4c45 100644 --- a/elfo-macros-impl/Cargo.toml +++ b/elfo-macros-impl/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-macros/Cargo.toml b/elfo-macros/Cargo.toml index 4c3f1c7a..413334d9 100644 --- a/elfo-macros/Cargo.toml +++ b/elfo-macros/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-network/Cargo.toml b/elfo-network/Cargo.toml index 0a188399..ac131099 100644 --- a/elfo-network/Cargo.toml +++ b/elfo-network/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-pinger/Cargo.toml b/elfo-pinger/Cargo.toml index 4210b213..33d7838f 100644 --- a/elfo-pinger/Cargo.toml +++ b/elfo-pinger/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-telemeter/Cargo.toml b/elfo-telemeter/Cargo.toml index 67b8fa3f..426c7c69 100644 --- a/elfo-telemeter/Cargo.toml +++ b/elfo-telemeter/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-test/Cargo.toml b/elfo-test/Cargo.toml index 7ebdbeb7..7626b452 100644 --- a/elfo-test/Cargo.toml +++ b/elfo-test/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo-utils/Cargo.toml b/elfo-utils/Cargo.toml index 64bec13e..36fce317 100644 --- a/elfo-utils/Cargo.toml +++ b/elfo-utils/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/elfo/Cargo.toml b/elfo/Cargo.toml index 481d8749..ffa4e840 100644 --- a/elfo/Cargo.toml +++ b/elfo/Cargo.toml @@ -9,6 +9,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/examples/Cargo.toml b/examples/Cargo.toml index cbe53d86..6dd5dfa0 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -8,6 +8,7 @@ authors.workspace = true license.workspace = true edition.workspace = true readme.workspace = true +rust-version.workspace = true [features] unstable = ["elfo/unstable", "elfo-telemeter/unstable"]