Commit Graph
347 Commits
Author SHA1 Message Date
jwhb 309e840a2e chore(deps): bump schemars, serde_json, tokio and tempfile
schemars v1.2.0
serde_json 1.0.148
tokio v1.49.0
tempfile v3.24
2026-01-03 20:54:11 +01:00
jwhb 1fd0448994 chore(deps): bump serde, thiserror, tokio, datatest-stable and tempfile 2025-10-21 17:31:19 +02:00
jwhb f0df76680f Merge remote-tracking branch 'origin/dependabot/cargo/serde-1.0.225' 2025-09-20 00:57:56 +02:00
jwhb 853987516f Merge remote-tracking branch 'origin/dependabot/cargo/serde_path_to_error-0.1.20' 2025-09-20 00:55:49 +02:00
jwhb 9abd4a25f7 Merge remote-tracking branch 'origin/dependabot/cargo/serde_json-1.0.145' 2025-09-20 00:53:38 +02:00
dependabot[bot] a0d7c4cdf8 chore(deps): bump serde from 1.0.219 to 1.0.225
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.219 to 1.0.225.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.219...v1.0.225)

---
updated-dependencies:
- dependency-name: serde
  dependency-version: 1.0.225
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-17 02:09:36 +00:00
dependabot[bot] a54fec2784 chore(deps): bump serde_path_to_error from 0.1.17 to 0.1.20
Bumps [serde_path_to_error](https://github.com/dtolnay/path-to-error) from 0.1.17 to 0.1.20.
- [Release notes](https://github.com/dtolnay/path-to-error/releases)
- [Commits](https://github.com/dtolnay/path-to-error/compare/0.1.17...0.1.20)

---
updated-dependencies:
- dependency-name: serde_path_to_error
  dependency-version: 0.1.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 02:09:24 +00:00
dependabot[bot] 5b5eb0e144 chore(deps): bump serde_json from 1.0.143 to 1.0.145
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.143 to 1.0.145.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.143...v1.0.145)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.145
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 02:10:10 +00:00
dependabot[bot] d1da6f3840 chore(deps): bump async-process from 2.4.0 to 2.5.0
Bumps [async-process](https://github.com/smol-rs/async-process) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/smol-rs/async-process/releases)
- [Changelog](https://github.com/smol-rs/async-process/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/async-process/compare/v2.4.0...v2.5.0)

---
updated-dependencies:
- dependency-name: async-process
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 02:10:04 +00:00
Jasper Wiegratz 10027ac468 Merge pull request #193 from nftables-rs/dependabot/cargo/tempfile-3.22.0
chore(deps): bump tempfile from 3.21.0 to 3.22.0
2025-09-10 11:37:03 +02:00
dependabot[bot] d5f7c297e9 chore(deps): bump tempfile from 3.21.0 to 3.22.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.21.0 to 3.22.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.21.0...v3.22.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-version: 3.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 02:10:13 +00:00
Jasper Wiegratz 61ef3d55e3 Merge pull request #192 from nftables-rs/dependabot/cargo/thiserror-2.0.16
chore(deps): bump thiserror from 2.0.15 to 2.0.16
2025-08-26 09:22:54 +02:00
dependabot[bot] 1c60d78a5f chore(deps): bump thiserror from 2.0.15 to 2.0.16
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.15...2.0.16)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-version: 2.0.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-26 07:19:02 +00:00
Jasper Wiegratz 410bcff7b3 Merge pull request #190 from nftables-rs/dependabot/cargo/serde_json-1.0.143
chore(deps): bump serde_json from 1.0.142 to 1.0.143
2025-08-22 11:49:42 +02:00
dependabot[bot] 78b992c24b chore(deps): bump serde_json from 1.0.142 to 1.0.143
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.142 to 1.0.143.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.142...v1.0.143)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.143
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 09:41:34 +00:00
Jan Romann 6c30ca905b Merge pull request #191 from nftables-rs/dependabot/cargo/tempfile-3.21.0
chore(deps): bump tempfile from 3.20.0 to 3.21.0
2025-08-21 10:41:01 +02:00
dependabot[bot] 5d6f499913 chore(deps): bump tempfile from 3.20.0 to 3.21.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.20.0 to 3.21.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/commits)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-version: 3.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 05:51:41 +00:00
Jasper Wiegratz 6ec0dc5fba Merge pull request #188 from nftables-rs/dependabot/cargo/thiserror-2.0.15
chore(deps): bump thiserror from 2.0.14 to 2.0.15
2025-08-18 10:03:31 +02:00
dependabot[bot] a65fdd0bc8 chore(deps): bump thiserror from 2.0.14 to 2.0.15
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.14 to 2.0.15.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.14...2.0.15)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-version: 2.0.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 03:01:34 +00:00
Jasper Wiegratz 5421a0b8fc Merge pull request #158 from nftables-rs/release-plz-2025-05-12T08-21-02Z
chore: release v0.6.3
2025-08-15 16:07:43 +02:00
jwhb be84bdbafb chore: release v0.6.3 v0.6.3 2025-08-15 14:06:23 +00:00
Jasper Wiegratz 0b81aa0215 Merge pull request #185 from nftables-rs/dependabot/github_actions/actions/checkout-5
chore(deps): bump actions/checkout from 4 to 5
2025-08-15 15:54:33 +02:00
dependabot[bot] 0ff18d6b20 chore(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-15 15:53:11 +02:00
Jasper Wiegratz 3de10cacb6 Merge pull request #181 from nftables-rs/dependabot/cargo/tokio-1.47.1
chore(deps): bump tokio from 1.47.0 to 1.47.1
2025-08-15 15:52:35 +02:00
dependabot[bot] 8e1c4e47a3 chore(deps): bump tokio from 1.47.0 to 1.47.1
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.47.0 to 1.47.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.47.0...tokio-1.47.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.47.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-15 13:50:26 +00:00
Jasper Wiegratz 23dbeabf37 Merge pull request #166 from stevelr/main
fix: bitwise flags or with more than two operands
2025-08-15 15:49:28 +02:00
jwhb f1d6e16bd6 test(expr): bitwise flags or with more than two operands 2025-08-15 15:38:08 +02:00
Jasper Wiegratz fcc1e7e5b5 Merge pull request #186 from Luap99/fix-flag-parsing
Fix single flag parsing with nft 1.1.4
2025-08-15 15:22:37 +02:00
Jan Romann 2abed8e262 Merge pull request #184 from nftables-rs/dependabot/cargo/thiserror-2.0.14
chore(deps): bump thiserror from 2.0.12 to 2.0.14
2025-08-14 18:12:27 +02:00
Paul Holzinger 54ba9a30e9 fix: accept single or multiple set/map flags
Like for fib and synproxy flags with nft 1.1.4 a single flag value is
printed as string not array so the parser need to account for that.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-08-13 15:34:35 +02:00
Paul Holzinger c7ce1b0c4a fix: accept single or multiple synproxy flags
Like for fib flags with nft 1.1.4 a single flag value is printed as
string not array so the parser need to account for that.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-08-13 15:34:35 +02:00
Paul Holzinger d234af6ea1 fix: accept fib flags as string or array
nft 1.1.4 changed the json output to return only a single string if
there is only one flag set.[1,2]

The same logic applies to some other types as well which I update in the
following commits.

[1] https://github.com/nftables-rs/nftables-rs/issues/183
[2] https://bugzilla.netfilter.org/show_bug.cgi?id=1806

Fixes #183

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-08-13 15:25:23 +02:00
Paul Holzinger 0294fb2601 fix: correctly parse log opts as array
The inffered type by Deserialize is Option<T> which is wrong and thus
the deserialize call fails as it is called on the wrong type. If we have
an array we need to directly use the HashSet type.

Switch one of the log statements in the tests to use two flags to cover
this path.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-08-13 15:25:22 +02:00
Paul Holzinger 4c6a943fef fix: do not panic when parsing an unsupported log flag
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-08-13 15:25:15 +02:00
dependabot[bot] b8b555a8a4 chore(deps): bump thiserror from 2.0.12 to 2.0.14
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.12 to 2.0.14.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.12...2.0.14)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-version: 2.0.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 10:48:25 +00:00
Jan Romann 9d3c72bf57 Merge pull request #182 from nftables-rs/dependabot/cargo/futures-lite-2.6.1
chore(deps): bump futures-lite from 2.6.0 to 2.6.1
2025-08-09 17:03:27 +02:00
dependabot[bot] 8737de5775 chore(deps): bump futures-lite from 2.6.0 to 2.6.1
Bumps [futures-lite](https://github.com/smol-rs/futures-lite) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/smol-rs/futures-lite/releases)
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/futures-lite/compare/v2.6.0...v2.6.1)

---
updated-dependencies:
- dependency-name: futures-lite
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 03:33:30 +00:00
Jan Romann 744b367b27 Merge pull request #177 from nftables-rs/dependabot/cargo/async-process-2.4.0
chore(deps): bump async-process from 2.3.0 to 2.4.0
2025-08-01 20:14:02 +02:00
Jan Romann bfdad29993 Merge pull request #180 from nftables-rs/dependabot/cargo/serde_json-1.0.142
chore(deps): bump serde_json from 1.0.141 to 1.0.142
2025-08-01 20:13:38 +02:00
dependabot[bot] eeec21b309 chore(deps): bump serde_json from 1.0.141 to 1.0.142
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.141 to 1.0.142.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.141...v1.0.142)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.142
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-01 03:05:16 +00:00
dependabot[bot] e437171703 chore(deps): bump async-process from 2.3.0 to 2.4.0
---
updated-dependencies:
- dependency-name: async-process
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-31 14:53:47 +00:00
Jasper Wiegratz 9483d1b18a Merge pull request #176 from nftables-rs/dependabot/cargo/serde_json-1.0.141
chore(deps): bump serde_json from 1.0.140 to 1.0.141
2025-07-31 16:52:40 +02:00
dependabot[bot] 95ea8b6c7c chore(deps): bump serde_json from 1.0.140 to 1.0.141
---
updated-dependencies:
- dependency-name: serde_json
  dependency-version: 1.0.141
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-31 09:46:54 +00:00
Jasper Wiegratz 350697a385 Merge pull request #178 from nftables-rs/dependabot/cargo/strum_macros-0.27.2
chore(deps): bump strum_macros from 0.27.1 to 0.27.2
2025-07-31 11:45:52 +02:00
dependabot[bot] 3fc8324dcc chore(deps): bump strum_macros from 0.27.1 to 0.27.2
---
updated-dependencies:
- dependency-name: strum_macros
  dependency-version: 0.27.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-30 23:07:13 +00:00
Jasper Wiegratz b7ee217288 Merge pull request #175 from nftables-rs/dependabot/cargo/strum-0.27.2
chore(deps): bump strum from 0.27.1 to 0.27.2
2025-07-31 01:06:09 +02:00
dependabot[bot] 5dcba2d41d chore(deps): bump strum from 0.27.1 to 0.27.2
---
updated-dependencies:
- dependency-name: strum
  dependency-version: 0.27.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-28 04:26:07 +00:00
Jan Romann 207c873d11 Merge pull request #179 from nftables-rs/dependabot/cargo/tokio-1.47.0
chore(deps): bump tokio from 1.46.1 to 1.47.0
2025-07-28 06:25:01 +02:00
dependabot[bot] c0cc5ecc0d chore(deps): bump tokio from 1.46.1 to 1.47.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.46.1 to 1.47.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.46.1...tokio-1.47.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-version: 1.47.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-28 02:47:47 +00:00
Jasper Wiegratz dd9c55d61f Merge pull request #174 from nftables-rs/dependabot/cargo/tokio-1.46.1
chore(deps): bump tokio from 1.46.0 to 1.46.1
2025-07-13 01:38:43 +02:00