{"id":13484789,"url":"https://github.com/nanpuyue/tokio-fd","last_synced_at":"2026-04-06T06:04:50.157Z","repository":{"id":57670063,"uuid":"237370603","full_name":"nanpuyue/tokio-fd","owner":"nanpuyue","description":"Non-blocking Read and Write a Linux/Unix File Descriptor","archived":false,"fork":false,"pushed_at":"2021-01-06T14:18:34.000Z","size":12,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T18:42:50.067Z","etag":null,"topics":["async","linux","mio","non-blocking","rust","tokio"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/nanpuyue.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":"2020-01-31T06:04:00.000Z","updated_at":"2024-02-07T13:33:40.000Z","dependencies_parsed_at":"2022-09-26T20:40:40.740Z","dependency_job_id":null,"html_url":"https://github.com/nanpuyue/tokio-fd","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Ftokio-fd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Ftokio-fd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Ftokio-fd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanpuyue%2Ftokio-fd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanpuyue","download_url":"https://codeload.github.com/nanpuyue/tokio-fd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245882369,"owners_count":20687871,"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":["async","linux","mio","non-blocking","rust","tokio"],"created_at":"2024-07-31T17:01:33.665Z","updated_at":"2025-12-12T15:02:24.479Z","avatar_url":"https://github.com/nanpuyue.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Non-blocking Read and Write a Linux/Unix File Descriptor\n\n[![Crates.io](https://img.shields.io/crates/v/tokio-fd?color=green)](https://crates.io/crates/tokio-fd)\n\n## Example\n\n```rust\nuse std::convert::TryFrom;\nuse std::io::Result;\n\nuse tokio::prelude::*;\nuse tokio_fd::AsyncFd;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    let mut stdin = AsyncFd::try_from(libc::STDIN_FILENO)?;\n    let mut stdout = AsyncFd::try_from(libc::STDOUT_FILENO)?;\n    let mut buf = vec![0; 1024];\n\n    while let Ok(n) = stdin.read(\u0026mut buf).await {\n        stdout.write(\u0026buf[..n]).await?;\n    }\n    Ok(())\n}\n```\n\n## License\n\nThis project is licensed under either of\n\n* [Apache License, Version 2.0](https://github.com/nanpuyue/tokio-fd/blob/master/LICENSE-APACHE)\n* [MIT License](https://github.com/nanpuyue/tokio-fd/blob/master/LICENSE-MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanpuyue%2Ftokio-fd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanpuyue%2Ftokio-fd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanpuyue%2Ftokio-fd/lists"}