Merge pull request #83 from namib-project/jwhb-msrv

Document and test against Minimum Supported Rust Version
This commit is contained in:
Jasper Wiegratz
2024-11-08 11:39:02 +01:00
committed by GitHub
3 changed files with 20 additions and 3 deletions
+10
View File
@@ -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
+4 -3
View File
@@ -1,12 +1,13 @@
[package]
edition = "2021"
name = "nftables"
version = "0.5.0"
license = "MIT OR Apache-2.0"
authors = ["Jasper Wiegratz <wiegratz@uni-bremen.de>", "Jan Romann <jan.romann@uni-bremen.de>"]
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 = [
+6
View File
@@ -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