{"id":16936452,"url":"https://github.com/jonhoo/async-bincode","last_synced_at":"2025-05-16T12:06:46.409Z","repository":{"id":32462495,"uuid":"134601305","full_name":"jonhoo/async-bincode","owner":"jonhoo","description":"Asynchronous access to a bincode-encoded item stream.","archived":false,"fork":false,"pushed_at":"2025-03-22T16:27:09.000Z","size":157,"stargazers_count":74,"open_issues_count":2,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-15T01:49:08.383Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonhoo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-23T17:04:19.000Z","updated_at":"2025-03-25T10:44:31.000Z","dependencies_parsed_at":"2024-06-21T13:14:44.687Z","dependency_job_id":"0683ac61-7606-45d6-bcb8-497ea98ae0df","html_url":"https://github.com/jonhoo/async-bincode","commit_stats":{"total_commits":114,"total_committers":11,"mean_commits":"10.363636363636363","dds":"0.11403508771929827","last_synced_commit":"5bf693fae30444b70bb24b8b379a6613e86c4c86"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fasync-bincode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fasync-bincode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fasync-bincode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Fasync-bincode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonhoo","download_url":"https://codeload.github.com/jonhoo/async-bincode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527085,"owners_count":22085918,"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-10-13T20:57:01.019Z","updated_at":"2025-05-16T12:06:46.326Z","avatar_url":"https://github.com/jonhoo.png","language":"Rust","readme":"# async-bincode\n\n[![Crates.io](https://img.shields.io/crates/v/async-bincode.svg)](https://crates.io/crates/async-bincode)\n[![Documentation](https://docs.rs/async-bincode/badge.svg)](https://docs.rs/async-bincode/)\n[![codecov](https://codecov.io/gh/jonhoo/async-bincode/graph/badge.svg?token=8MgydjsaLM)](https://codecov.io/gh/jonhoo/async-bincode)\n\nAsynchronous access to a bincode-encoded item stream.\n\nThis crate enables you to asynchronously read from a bincode-encoded stream, or write\nbincoded-encoded values. `bincode` does not support this natively, as it cannot easily [resume\nfrom stream errors while encoding or decoding](https://github.com/TyOverby/bincode/issues/229).\n\n`async-bincode` works around that on the receive side by buffering received bytes until a full\nelement's worth of data has been received, and only then calling into bincode. To make this\nwork, it relies on the sender to prefix each encoded element with its encoded size.\n\nOn the write side, `async-bincode` buffers the serialized values, and asynchronously sends the\nresulting bytestream. **Important:** Only one element at a time is written to the output writer.\nIt is recommended to use a BufWriter in front of the output to batch write operations to the\nunderlying writer. The marker trait `AsyncDestination` can be used to automatically add the\nlength prefix required by an `async-bincode` receiver.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhoo%2Fasync-bincode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonhoo%2Fasync-bincode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhoo%2Fasync-bincode/lists"}