Crates.io | nullnet-libfireparse |
lib.rs | nullnet-libfireparse |
version | 0.3.4 |
created_at | 2025-01-30 01:39:41.694587+00 |
updated_at | 2025-07-24 21:40:03.346478+00 |
description | A library for parsing and translating firewall configurations across multiple NullNet targets |
homepage | |
repository | https://github.com/NullNet-ai/libguard |
max_upload_size | |
id | 1536034 |
size | 94,211 |
libfireparse is a Rust library for parsing firewall configuration files and converting them into a unified format compatible with the NullNet platform.
use libfireparse::Parser;
let xml = r#"<pfsense><aliases></aliases><filter></filter></pfsense>"#;
match Parser::parse("pfsense", xml) {
Ok(config) => println!("Parsed {} rules and {} aliases", config.rules.len(), config.aliases.len()),
Err(err) => eprintln!("Error: {:?}", err),
}
MIT