{"id":15908042,"url":"https://github.com/marirs/winfw-rs","last_synced_at":"2025-07-10T07:33:10.662Z","repository":{"id":38240814,"uuid":"373827428","full_name":"marirs/winfw-rs","owner":"marirs","description":"Bindings for Windows Firewall from Rust","archived":false,"fork":false,"pushed_at":"2022-11-27T11:00:22.000Z","size":77,"stargazers_count":18,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T06:07:26.256Z","etag":null,"topics":["bindings","ffi","ffi-bindings","firewall","rust","rust-crate","rust-lang","rust-library","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marirs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-04T12:00:47.000Z","updated_at":"2024-10-22T04:49:09.000Z","dependencies_parsed_at":"2023-01-21T22:04:24.116Z","dependency_job_id":null,"html_url":"https://github.com/marirs/winfw-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marirs/winfw-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fwinfw-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fwinfw-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fwinfw-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fwinfw-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marirs","download_url":"https://codeload.github.com/marirs/winfw-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fwinfw-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264545168,"owners_count":23625404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bindings","ffi","ffi-bindings","firewall","rust","rust-crate","rust-lang","rust-library","windows"],"created_at":"2024-10-06T14:09:06.166Z","updated_at":"2025-07-10T07:33:10.622Z","avatar_url":"https://github.com/marirs.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Windows Firewall\n==================\n\n![Crates.io](https://img.shields.io/crates/v/winfw)\n[![Documentation](https://docs.rs/winfw/badge.svg)](https://docs.rs/winfw)\n![Crates.io](https://img.shields.io/crates/l/winfw)\n\n\nInteract with the Windows Firewall from Rust. Bindings for Windows Firewall, with clean \u0026 simple API for use with Rust.  \n  \nThis crate can perform the following:\n- Enumerate the Windows firewall rules\n- Add/Create a new Windows firewall rule\n- Delete an existing Windows firewall rule\n- Disable an existing Windows firewall rule\n\n### Usage\n\nCargo.toml:\n```toml\n[target.'cfg(windows)'.dependencies]\nwinfw = \"0.1.8\"\n```\n\nmain.rs:\n```rust\nuse winfw::get_fw_rules;\n\nfn main() {\n    // enumerating fw rules\n    let rules = get_fw_rules();\n    match rules {\n        Err(rules) =\u003e println!(\"Error: {}\", rules),\n        Ok(rules) =\u003e {\n            for rule in rules.iter() {\n                println!(\"{}\", rule);\n            }\n        }\n    }\n}\n```\n\n### running the example\n- Show/list all configured firewall rules\n```bash\ncargo run --example list_all_rules\n```\n\n- Add a new firewall rule\n```bash\ncargo run --example add_new_rule\n```\n\n- Delete a firewall rule\n```bash\ncargo run --example del_rule\n```\n\n- Disable a firewall rule\n```bash\ncargo run --example disable_rule\n```\n\n### Requirements\n- Rust 1.50+\n- VS 2019 community edition\n\n---\nLicense: MIT/Apache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fwinfw-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarirs%2Fwinfw-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fwinfw-rs/lists"}