{"id":31901053,"url":"https://github.com/berrysoft/wepoll2","last_synced_at":"2025-10-13T12:52:16.406Z","repository":{"id":245929422,"uuid":"814609102","full_name":"Berrysoft/wepoll2","owner":"Berrysoft","description":"Yet another implementation of epoll on Windows, in Rust. Based on `ProcessSocketNotifications` and `NtAssociateWaitCompletionPacket`.","archived":false,"fork":false,"pushed_at":"2024-12-13T16:29:32.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-13T17:43:50.412Z","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/Berrysoft.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T10:44:14.000Z","updated_at":"2024-12-13T16:29:37.000Z","dependencies_parsed_at":"2024-12-13T17:32:27.698Z","dependency_job_id":null,"html_url":"https://github.com/Berrysoft/wepoll2","commit_stats":null,"previous_names":["berrysoft/wepoll2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Berrysoft/wepoll2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berrysoft%2Fwepoll2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berrysoft%2Fwepoll2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berrysoft%2Fwepoll2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berrysoft%2Fwepoll2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Berrysoft","download_url":"https://codeload.github.com/Berrysoft/wepoll2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berrysoft%2Fwepoll2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015087,"owners_count":26085644,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-13T12:52:11.300Z","updated_at":"2025-10-13T12:52:16.397Z","avatar_url":"https://github.com/Berrysoft.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wepoll2\n\nThis is a Rust crate inspired by the famous [`wepoll`](https://github.com/piscisaureus/wepoll) library. It provides similar FFI, but not ABI-compatible.\n\nPreviously I tried to [add `ProcessSocketNotifications` backend](https://github.com/smol-rs/polling/pull/210) for [`polling`](https://github.com/smol-rs/polling), but it doesn't fit that crate well.\n\n## Implementation details\n\nThe crate is `no-std` by default to reduce the binary size. All APIs are panic-free.\n\nUnlike `wepoll`, [`ProcessSocketNotifications`](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-processsocketnotifications) is used in this library. It behaves a little different from `epoll` in Linux.\n\n`wepoll2` supports event objects with `NtAssociateWaitCompletionPacket` API series. No thread pool involved, and one-shot trigger only.\n\n## Extensions\n`epoll_pwait` and `epoll_pwait2` is implemented for alertable waiting and `timespec` support.\n\n## Limitations\n\n* `ProcessSocketNotifications` is a very new API.\n* The edge trigger behaves a little different.\n* One socket could be only associated to one IOCP.\n* Not all `EPOLL*` flags are supported.\n\n## Bugs\n\n* Sockets don't work on i686 target. Still investigating.\n* `epoll_wait` series API may wait for a shorter time than specified. Maybe bugs of Windows API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberrysoft%2Fwepoll2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberrysoft%2Fwepoll2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberrysoft%2Fwepoll2/lists"}