Open jwhb opened 4 months ago
Concerns were raised regarding the usability of the API exposed by this crate. The definition of nftables structures may become very verbose:
// ... stmt::Statement::Match(stmt::Match { left: expr::Expression::BinaryOperation(expr::BinaryOperation::AND( Box::new(expr::Expression::Named(expr::NamedExpression::Meta( expr::Meta { key: expr::MetaKey::Mark, }, ))), Box::new(expr::Expression::Number(MASK)), )), right: expr::Expression::Number(MASK), op: stmt::Operator::EQ, }), stmt::Statement::Masquerade(None), // ...
Users of this crate may wish to define nftables structures in a more concise way.
Great rust library. I think this would be really good along side better docs.
Motivation
Concerns were raised regarding the usability of the API exposed by this crate. The definition of nftables structures may become very verbose:
Users of this crate may wish to define nftables structures in a more concise way.
Goal
Proposal