{"id":24756332,"url":"https://github.com/dalance/proc-reader","last_synced_at":"2025-10-11T02:31:37.161Z","repository":{"id":31747892,"uuid":"128741027","full_name":"dalance/proc-reader","owner":"dalance","description":"A std::io::Read implementation for stdout/stderr of other process","archived":false,"fork":false,"pushed_at":"2023-08-28T20:55:50.000Z","size":49,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T01:42:06.797Z","etag":null,"topics":["ptrace","rust","rust-library","stderr","stdout"],"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/dalance.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":"2018-04-09T08:41:02.000Z","updated_at":"2022-12-05T00:38:41.000Z","dependencies_parsed_at":"2023-01-14T19:41:34.402Z","dependency_job_id":null,"html_url":"https://github.com/dalance/proc-reader","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fproc-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fproc-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fproc-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalance%2Fproc-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalance","download_url":"https://codeload.github.com/dalance/proc-reader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236026026,"owners_count":19083306,"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":["ptrace","rust","rust-library","stderr","stdout"],"created_at":"2025-01-28T13:50:53.386Z","updated_at":"2025-10-11T02:31:31.848Z","avatar_url":"https://github.com/dalance.png","language":"Rust","readme":"# proc-reader\n\n[![Build Status](https://travis-ci.org/dalance/proc-reader.svg?branch=master)](https://travis-ci.org/dalance/proc-reader)\n[![Crates.io](https://img.shields.io/crates/v/proc-reader.svg)](https://crates.io/crates/proc-reader)\n[![Docs.rs](https://docs.rs/proc-reader/badge.svg)](https://docs.rs/proc-reader)\n[![codecov](https://codecov.io/gh/dalance/proc-reader/branch/master/graph/badge.svg)](https://codecov.io/gh/dalance/proc-reader)\n\nA std::io::Read implementation for stdout/stderr of other process\n\n[Documentation](https://docs.rs/proc-reader)\n\n## Usage\n\n```Cargo.toml\n[dependencies]\nproc-reader = \"0.5.1\"\n```\n\n## Supported Platform\n\n- x86_64-unknown-linux-gnu\n- x86_64-unknown-linux-musl\n- i686-unknown-linux-gnu\n- i686-unknown-linux-musl\n\n## Example\n\n```rust\nextern crate proc_reader;\nuse proc_reader::ProcReader;\nuse std::process::Command;\nuse std::io::Read;\nuse std::time::Duration;\nuse std::thread;\n\nfn main() {\n    // Create a process for reading stdout\n    let child = Command::new(\"sh\").arg(\"-c\").arg(\"sleep 1; echo aaa\").spawn().unwrap();\n\n    // Create ProcReader from pid\n    let mut reader = ProcReader::from_stdout(child.id());\n\n    // Wait the end of process\n    thread::sleep(Duration::from_secs(2));\n\n    // Read from ProcReader\n    let mut line = String::new();\n    let _ = reader.read_to_string(\u0026mut line);\n    assert_eq!( \"aaa\\n\", line);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalance%2Fproc-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalance%2Fproc-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalance%2Fproc-reader/lists"}