winfw 0.1.8

Interact with the Windows Firewall from Rust
Documentation
1
2
3
4
5
6
7
8
9
use winfw::del_fw_rule;

fn main() {
    // delete rule
    match del_fw_rule(&"TEST_INTERFACE_RULE".to_string()) {
        Err(e) => println!("Error: {}", e),
        Ok(()) => println!("Success"),
    }
}