{"id":16114701,"url":"https://github.com/solarliner/buffers","last_synced_at":"2025-07-28T16:07:12.851Z","repository":{"id":57671967,"uuid":"219284314","full_name":"SolarLiner/buffers","owner":"SolarLiner","description":"Collection of unified buffers from stdio, file and memory buffers.","archived":false,"fork":false,"pushed_at":"2019-11-03T12:50:28.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T11:41:25.292Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SolarLiner.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":"2019-11-03T10:33:19.000Z","updated_at":"2022-01-06T04:06:19.000Z","dependencies_parsed_at":"2022-08-31T01:23:21.742Z","dependency_job_id":null,"html_url":"https://github.com/SolarLiner/buffers","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/SolarLiner/buffers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLiner%2Fbuffers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLiner%2Fbuffers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLiner%2Fbuffers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLiner%2Fbuffers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SolarLiner","download_url":"https://codeload.github.com/SolarLiner/buffers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SolarLiner%2Fbuffers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267543356,"owners_count":24104559,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-10-09T20:15:29.091Z","updated_at":"2025-07-28T16:07:12.801Z","avatar_url":"https://github.com/SolarLiner.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buffers\nCollection of unified buffers from stdio, file and memory buffers.\n\nThe `buffers` crate unifies standard IO, memory and file buffers into a unified type, allowing\nto effectively leave the type of buffer used to the user.\n\n## How to use\n\nThe `buffers` crate exposes three types; one for input, one for output, and one for duplex in/out\noperations. For convenience, each type has a `from_arg` constructor that takes in the output of\na commandline parser (such as `clap`) and returns the buffer of the appropriate type (see the\nfunction docs for more details).\n\nIO Read/Write traits are implemented for the types meaning you can use those wrapper types as a\ndrop-in replacement of \"regular\" buffers.\n\n## Example\n\n```rust\nuse clap::{App, Arg};\nuse buffers::{Input, Output};\n\nlet matches = App::new(\"app\")\n    .arg(Arg::with_name(\"input\").index(1))\n    .arg(Arg::with_name(\"output\").index(2))\n    .get_matches();\nlet mut input_buf = Input::from_arg(matches.value_of(\"input\"));\nlet mut output_buf = Output::from_arg(matches.value_of(\"output\"));\nparse_input(\u0026mut input_buf).and_then(|ast| transpile(ast, \u0026mut output_buf));\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarliner%2Fbuffers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolarliner%2Fbuffers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarliner%2Fbuffers/lists"}