{"id":50722716,"url":"https://github.com/narrowlink/uds-stream-windows","last_synced_at":"2026-06-10T01:31:00.884Z","repository":{"id":354933987,"uuid":"1222117286","full_name":"narrowlink/uds-stream-windows","owner":"narrowlink","description":"Tokio-based Unix Domain Socket (UDS) for Windows with AsyncRead/AsyncWrite support","archived":false,"fork":false,"pushed_at":"2026-04-27T04:04:42.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T03:07:32.362Z","etag":null,"topics":["rust","uds","windows"],"latest_commit_sha":null,"homepage":"","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/narrowlink.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-27T04:01:27.000Z","updated_at":"2026-04-27T04:05:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/narrowlink/uds-stream-windows","commit_stats":null,"previous_names":["narrowlink/uds-stream-windows"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/narrowlink/uds-stream-windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narrowlink%2Fuds-stream-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narrowlink%2Fuds-stream-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narrowlink%2Fuds-stream-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narrowlink%2Fuds-stream-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narrowlink","download_url":"https://codeload.github.com/narrowlink/uds-stream-windows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narrowlink%2Fuds-stream-windows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34133404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["rust","uds","windows"],"created_at":"2026-06-10T01:30:59.650Z","updated_at":"2026-06-10T01:31:00.878Z","avatar_url":"https://github.com/narrowlink.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UDS-STREAM-WINDOWS\n\n`uds-stream-windows` is a Rust library that provides a Tokio-compatible Unix Domain Socket (UDS) implementation for Windows, offering `UdsListener` and `UdsStream` types that implement `AsyncRead` and `AsyncWrite`. It leverages the native `AF_UNIX` support introduced in recent Windows versions, making it easy to work with Unix Domain Sockets on Windows just as you would on Unix-like systems.\n\n## FEATURES\n\n*   **AsyncRead/AsyncWrite**: `uds-stream-windows` provides `UdsStream` and `UdsListener` that integrate seamlessly with the `tokio` ecosystem, allowing you to use standard `AsyncReadExt` and `AsyncWriteExt` methods.\n*   **Native Windows Support**: Specifically designed for Windows, utilizing `WSAEventSelect` and registration for asynchronous I/O completion.\n*   **Simple API**: The API is designed to be familiar to users of `tokio::net::UnixStream` and `tokio::net::UnixListener`.\n\n## USAGE\n\nTo use `uds-stream-windows` in your Rust project, add it as a dependency in your `Cargo.toml` file:\n\n```toml\n[dependencies]\nuds-stream-windows = \"0.0.1\"\n```\n\nThen, you can use it in your Rust code:\n\n### Client Example\n\n```rust\nuse tokio::io::{AsyncReadExt, AsyncWriteExt};\nuse uds_stream_windows::UdsStream;\n\n#[tokio::main]\nasync fn main() -\u003e std::io::Result\u003c()\u003e {\n    let path = \"example.sock\";\n    let mut stream = UdsStream::connect(path).await?;\n    println!(\"Connected to {}\", path);\n\n    let msg = \"Hello from the Windows UDS client!\";\n    stream.write_all(msg.as_bytes()).await?;\n\n    let mut buf = vec![0u8; 1024];\n    let n = stream.read(\u0026mut buf).await?;\n    println!(\"Received: {}\", String::from_utf8_lossy(\u0026buf[..n]));\n\n    Ok(())\n}\n```\n\n### Server Example\n\n```rust\nuse tokio::io::{AsyncReadExt, AsyncWriteExt};\nuse uds_stream_windows::UdsListener;\n\n#[tokio::main]\nasync fn main() -\u003e std::io::Result\u003c()\u003e {\n    let path = \"example.sock\";\n    let listener = UdsListener::bind(path)?;\n    println!(\"Server listening on {}\", path);\n\n    loop {\n        let (mut stream, addr) = listener.accept().await?;\n        tokio::spawn(async move {\n            let mut buf = [0u8; 1024];\n            if let Ok(n) = stream.read(\u0026mut buf).await {\n                let _ = stream.write_all(\u0026buf[..n]).await;\n            }\n        });\n    }\n}\n```\n\n## CONTRIBUTING\n\nContributions to `uds-stream-windows` are welcome! If you would like to contribute to the library, please follow the standard Rust community guidelines for contributing, including opening issues, submitting pull requests, and providing feedback.\n\n## LICENSE\n\n`uds-stream-windows` is licensed under the MIT License, which allows for free use, modification, and distribution, subject to the terms and conditions outlined in the license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarrowlink%2Fuds-stream-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarrowlink%2Fuds-stream-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarrowlink%2Fuds-stream-windows/lists"}