{"id":13671780,"url":"https://github.com/photondb/photonio","last_synced_at":"2025-04-27T18:31:44.647Z","repository":{"id":60845281,"uuid":"540023062","full_name":"photondb/photonio","owner":"photondb","description":"An efficient runtime for asynchronous applications in Rust.","archived":true,"fork":false,"pushed_at":"2022-11-08T12:29:39.000Z","size":153,"stargazers_count":43,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T08:22:58.171Z","etag":null,"topics":["asynchronous","rust"],"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/photondb.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-09-22T14:31:24.000Z","updated_at":"2024-07-08T00:35:12.000Z","dependencies_parsed_at":"2022-10-05T17:30:39.756Z","dependency_job_id":null,"html_url":"https://github.com/photondb/photonio","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photondb%2Fphotonio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photondb%2Fphotonio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photondb%2Fphotonio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photondb%2Fphotonio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/photondb","download_url":"https://codeload.github.com/photondb/photonio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187288,"owners_count":21549614,"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":["asynchronous","rust"],"created_at":"2024-08-02T09:01:18.513Z","updated_at":"2025-04-27T18:31:42.759Z","avatar_url":"https://github.com/photondb.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# PhotonIO\n\n[![crates][crates-badge]][crates-url]\n[![docs][docs-badge]][docs-url]\n\n[crates-badge]: https://img.shields.io/crates/v/photonio?style=flat-square\n[crates-url]: https://crates.io/crates/photonio\n[docs-badge]: https://img.shields.io/docsrs/photonio?style=flat-square\n[docs-url]: https://docs.rs/photonio/latest/photonio\n\nPhotonIO is an efficient runtime for asynchronous applications in Rust.\n\n## Features\n\n- Asynchronous filesystem and networking I/O for Linux based on [`io_uring`][io_uring].\n- A fallback implementation for other platforms based on [`Tokio`][tokio].\n- A multi-thread runtime.\n\n[io_uring]: https://unixism.net/loti/\n[tokio]: https://github.com/tokio-rs/tokio\n\n## Examples\n\n```rust\nuse photonio::{fs::File, io::Write, io::WriteAt};\n\n#[photonio::main]\nasync fn main() -\u003e std::io::Result\u003c()\u003e {\n    let mut file = File::create(\"hello.txt\").await?;\n    file.write(b\"hello\").await?;\n    file.write_at(b\"world\", 5).await?;\n    Ok(())\n}\n```\n\n## Limitations\n\n- Dropping an unfinished future for asynchronous filesystem or networking operations will result in a panic. However, this behavior might be change in the future.\n- The current multi-thread runtime uses a naive round-robin fashion to schedule tasks. A work-stealing scheduler will be added in the future.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphotondb%2Fphotonio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphotondb%2Fphotonio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphotondb%2Fphotonio/lists"}