namib-project / nftables-rs

Safe abstraction for nftables JSON API (libnftables-json).
https://crates.io/crates/nftables
Apache License 2.0
32 stars 15 forks source link

add element serialization #3

Closed Dummyc0m closed 1 year ago

Dummyc0m commented 1 year ago

Noticed the element was marked as "TODO", so I switched it on.

manually tested on linux 5.15 ubuntu 22.04

jwhb commented 1 year ago

@Dummyc0m, thank you for your contribution!

I added a test for Set and Element here.