nftables-async

Crates.ionftables-async
lib.rsnftables-async
version0.1.1
sourcesrc
created_at2024-10-27 05:50:16.018193
updated_at2024-10-27 05:53:00.819908
descriptionAn async version of the helper to run nftables, providing full compatibility with the rest of the nftables crate
homepage
repositoryhttps://github.com/kanpov/nftables-async
max_upload_size
id1424359
size5,964
kanpov (kanpov)

documentation

README

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.

Commit count: 5

cargo fmt