#nftables #async #async-version #rest #helper #run #ruleset

nftables-async

An async version of the helper to run nftables, providing full compatibility with the rest of the nftables crate

2 releases

0.1.1 Oct 27, 2024
0.1.0 Oct 27, 2024

#2031 in Network programming

Download history 146/week @ 2024-10-21 91/week @ 2024-10-28 13/week @ 2024-11-04 13/week @ 2024-11-11

263 downloads per month
Used in 4 crates (via fcnet)

MIT license

6KB
104 lines

nftables-async

An async version of the helper to run nftables in the nftables crate. Simply add both nftables-async and nftables to your crate, then use the nftables_async::apply_ruleset or nftables_async::get_current_ruleset to perform manipulations. Everything is compatible with the sync helper, even the error types, the functions, however, return "true" async futures.

The I/O in the futures is backed by the Tokio process module which doesn't require the runtime, so the library is still runtime-agnostic.

Dependencies

~3–12MB
~132K SLoC