From dfc8517372dd8360dac27fbf8859d32b2f8f8bad Mon Sep 17 00:00:00 2001 From: wiegratz Date: Sat, 2 Nov 2024 21:45:28 +0000 Subject: [PATCH 1/2] docs: define msrv --- Cargo.toml | 7 ++++--- README.md | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6f359a3..46dcc24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,13 @@ [package] -edition = "2021" name = "nftables" version = "0.5.0" -license = "MIT OR Apache-2.0" +authors = ["Jasper Wiegratz ", "Jan Romann "] +edition = "2021" +rust-version = "1.65" description = "Safe abstraction for nftables JSON API. It can be used to create nftables rulesets in Rust and parse existing nftables rulesets from JSON." -homepage = "https://namib.me/" repository = "https://github.com/namib-project/nftables-rs" readme = "README.md" +license = "MIT OR Apache-2.0" keywords = ["nftables", "netfilter", "firewall"] categories = ["os", "network-programming"] exclude = [ diff --git a/README.md b/README.md index 08e739b..eb6516e 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,12 @@ fn test_chain_table_rule_inet() { } ``` +## MSRV (Minimum Supported Rust Version) + +The MSRV of this crate is currently: **Rust 1.65** + +The MSRV will only be increased by a minor or major release of this crate. + ## License Licensed under either of From 3cb2e7495d9403464a33f5171f17359228327063 Mon Sep 17 00:00:00 2001 From: wiegratz Date: Sat, 2 Nov 2024 21:48:21 +0000 Subject: [PATCH 2/2] ci: build and test against msrv --- .github/workflows/rust.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 682ec16..89cfd16 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -47,9 +47,19 @@ jobs: build: name: Rust Build & Test runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust_version: + - { name: msrv, version: "1.65" } + - { name: stable, version: stable } steps: - name: Checkout repo uses: actions/checkout@v4 + - name: Install Rust ${{ matrix.rust_version.name }} (${{ matrix.rust_version.version }}) + uses: dtolnay/rust-toolchain@stable + with: + toolchain: ${{ matrix.rust_version.version }} - name: Build run: cargo build --verbose - name: Run tests