{"id":16211385,"url":"https://github.com/larusso/concat-reader","last_synced_at":"2025-03-19T09:30:41.291Z","repository":{"id":62438841,"uuid":"202771597","full_name":"Larusso/concat-reader","owner":"Larusso","description":"Adapter for reading through multiple reader continuously","archived":false,"fork":false,"pushed_at":"2019-09-12T18:25:28.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T17:46:41.939Z","etag":null,"topics":["concatenate","data-structures","reader","rust"],"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/Larusso.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-08-16T17:28:30.000Z","updated_at":"2021-03-17T08:16:40.000Z","dependencies_parsed_at":"2022-11-01T21:16:30.050Z","dependency_job_id":null,"html_url":"https://github.com/Larusso/concat-reader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Larusso%2Fconcat-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Larusso%2Fconcat-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Larusso%2Fconcat-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Larusso%2Fconcat-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Larusso","download_url":"https://codeload.github.com/Larusso/concat-reader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982141,"owners_count":20378605,"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":["concatenate","data-structures","reader","rust"],"created_at":"2024-10-10T10:47:09.018Z","updated_at":"2025-03-19T09:30:41.039Z","avatar_url":"https://github.com/Larusso.png","language":"Rust","readme":"concat-reader\n=============\n\nAdapter for reading through multiple reader continuously\n\n[![Build Status](https://travis-ci.org/Larusso/concat-reader.svg?branch=master)](https://travis-ci.org/Larusso/concat-reader)\n[![Crates.io](https://img.shields.io/crates/v/concat-reader.svg)](https://crates.io/crates/concat-reader)\n\n`concat-reader` is a library for Rust that contains utility functions and traits to create\nconcatenated [`Read`] objects from any thing that implements [`IntoIterator`].\n\n```rust\n  use concat_reader::{FileConcatRead, concat_path};\n  use std::io::{self, Read, BufRead, BufReader, Write};\n  fn main() -\u003e io::Result\u003c()\u003e{\n      let files = vec![\"/path/to/file_1\", \"/path/to/file_2\", \"/path/to/file_3\"];\n      let mut f = concat_path(files);\n      let mut buffered = BufReader::new(f);\n      let stdout = io::stdout();\n      let mut handle = stdout.lock();\n      loop {\n          let mut line = String::new();\n          let r = buffered.read_line(\u0026mut line)?;\n          if r == 0 {\n              return Ok(())\n          }\n          let f = buffered.get_ref().file_path();\n          eprintln!(\"read from {:?}\", f);\n          handle.write(line.as_bytes())?;\n      }\n  }\n```\n\nDocumentation: https://docs.rs/concat-reader\n\nlicense\n=======\n\n[Apache License 2.0](LICENSE)\n\n[`READ`]:         https://doc.rust-lang.org/std/io/trait.Read.html\n[`IntoIterator`]: https://doc.rust-lang.org/std/iter/trait.IntoIterator.html  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarusso%2Fconcat-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarusso%2Fconcat-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarusso%2Fconcat-reader/lists"}