{"id":22101134,"url":"https://github.com/rmja/buffered-io","last_synced_at":"2025-08-03T14:38:56.749Z","repository":{"id":96646281,"uuid":"608510139","full_name":"rmja/buffered-io","owner":"rmja","description":"Bufferering types for embedded-io","archived":false,"fork":false,"pushed_at":"2024-06-28T08:35:54.000Z","size":32,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-13T09:53:39.705Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-03-02T06:54:55.000Z","updated_at":"2024-06-28T08:35:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"6459a5d6-0bca-4430-8530-d8d2917c8a1c","html_url":"https://github.com/rmja/buffered-io","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"8ac9e3a5e781102f0bd3b035376faa2293519d77"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fbuffered-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fbuffered-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fbuffered-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fbuffered-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmja","download_url":"https://codeload.github.com/rmja/buffered-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227489801,"owners_count":17780627,"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-12-01T05:23:41.429Z","updated_at":"2024-12-01T05:23:42.089Z","avatar_url":"https://github.com/rmja.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buffer Types for embedded-io\n\n[![CI](https://github.com/rmja/buffered-io/actions/workflows/ci.yaml/badge.svg)](https://github.com/rmja/buffered-io/actions/workflows/ci.yaml)\n[![crates.io](https://img.shields.io/crates/v/buffered-io.svg)](https://crates.io/crates/buffered-io)\n[![docs.rs](https://docs.rs/buffered-io/badge.svg)](https://docs.rs/buffered-io)\n\nThe `buffered-io` crate implements buffering for the `embedded-io`/`embedded-io-async` `Read` and `Write` traits.\n\n## Example\n\n```rust\ntokio_test::block_on(async {\n    use buffered_io::asynch::BufferedWrite;\n    use embedded_io_async::Write;\n    \n    let uart_tx = Vec::new(); // The underlying uart peripheral implementing Write to where buffered bytes are written\n    let mut write_buf = [0; 120];\n    let mut buffering = BufferedWrite::new(uart_tx, \u0026mut write_buf);\n    buffering.write(b\"hello\").await.unwrap(); // This write is buffered\n    buffering.write(b\" \").await.unwrap(); // This write is also buffered\n    buffering.write(b\"world\").await.unwrap(); // This write is also buffered\n    buffering.flush().await.unwrap(); // The string \"hello world\" is written to uart in one write\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fbuffered-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmja%2Fbuffered-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fbuffered-io/lists"}