{"id":20522989,"url":"https://github.com/openbytedev/wineventhook-rs","last_synced_at":"2025-04-14T03:03:02.514Z","repository":{"id":53887751,"uuid":"465539302","full_name":"OpenByteDev/wineventhook-rs","owner":"OpenByteDev","description":"A rusty wrapper over SetWinEventHook and UnhookWinEvent.","archived":false,"fork":false,"pushed_at":"2024-02-06T22:25:26.000Z","size":75,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T03:02:51.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenByteDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-03T02:25:50.000Z","updated_at":"2025-02-24T16:00:48.000Z","dependencies_parsed_at":"2023-02-10T15:50:12.851Z","dependency_job_id":null,"html_url":"https://github.com/OpenByteDev/wineventhook-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fwineventhook-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fwineventhook-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fwineventhook-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fwineventhook-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenByteDev","download_url":"https://codeload.github.com/OpenByteDev/wineventhook-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813786,"owners_count":21165633,"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":[],"created_at":"2024-11-15T22:37:31.650Z","updated_at":"2025-04-14T03:03:02.487Z","avatar_url":"https://github.com/OpenByteDev.png","language":"Rust","readme":"# wineventhook\n\n[![CI](https://github.com/OpenByteDev/wineventhook-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/OpenByteDev/wineventhook-rs/actions/workflows/ci.yml)\n[![crates.io](https://img.shields.io/crates/v/wineventhook.svg)](https://crates.io/crates/wineventhook)\n[![Documentation](https://docs.rs/wineventhook/badge.svg)](https://docs.rs/wineventhook)\n[![dependency status](https://deps.rs/repo/github/openbytedev/wineventhook-rs/status.svg)](https://deps.rs/repo/github/openbytedev/wineventhook-rs)\n[![MIT](https://img.shields.io/crates/l/wineventhook.svg)](https://github.com/OpenByteDev/wineventhook-rs/blob/master/LICENSE)\n\nA rusty wrapper over SetWinEventHook and UnhookWinEvent.\n\n# Example\nThis example shows how to listen for all window events and print them to the console.\n```rust\nuse wineventhook::{EventFilter, WindowEventHook};\n\n#[tokio::main]\nasync fn main() {\n    // Create a new hook\n    let (event_tx, mut event_rx) = tokio::sync::mpsc::unbounded_channel();\n    let hook = WindowEventHook::hook(\n        EventFilter::default(),\n        event_tx,\n    ).await.unwrap();\n    \n    // Wait and print events\n    while let Some(event) = event_rx.recv().await {\n        println!(\"{:#?}\", event);\n    }\n    \n    // Unhook the hook\n    hook.unhook().await.unwrap();\n}\n```\n\n## License\nLicensed under MIT license ([LICENSE](https://github.com/OpenByteDev/wineventhook-rs/blob/master/LICENSE) or http://opensource.org/licenses/MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbytedev%2Fwineventhook-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenbytedev%2Fwineventhook-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbytedev%2Fwineventhook-rs/lists"}