{"id":33941623,"url":"https://github.com/leopard2a5/rust-stringreader","last_synced_at":"2026-03-17T16:02:25.799Z","repository":{"id":57668825,"uuid":"103026953","full_name":"Leopard2A5/rust-stringreader","owner":"Leopard2A5","description":"StringReader implementation for Rust","archived":false,"fork":false,"pushed_at":"2017-09-14T18:55:03.000Z","size":5,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-14T05:08:42.068Z","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/Leopard2A5.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":"2017-09-10T12:17:45.000Z","updated_at":"2022-10-15T02:35:57.000Z","dependencies_parsed_at":"2022-08-27T03:50:31.637Z","dependency_job_id":null,"html_url":"https://github.com/Leopard2A5/rust-stringreader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Leopard2A5/rust-stringreader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopard2A5%2Frust-stringreader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopard2A5%2Frust-stringreader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopard2A5%2Frust-stringreader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopard2A5%2Frust-stringreader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leopard2A5","download_url":"https://codeload.github.com/Leopard2A5/rust-stringreader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leopard2A5%2Frust-stringreader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30626906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T14:16:03.965Z","status":"ssl_error","status_checked_at":"2026-03-17T14:16:03.380Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-12-12T16:36:57.816Z","updated_at":"2026-03-17T16:02:25.794Z","avatar_url":"https://github.com/Leopard2A5.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust StringReader\n\n[![Build Status](https://travis-ci.org/Leopard2A5/rust-stringreader.svg?branch=master)](https://travis-ci.org/Leopard2A5/rust-stringreader)\n\nProvides a wrapper for strings so that they can be consumed via the std::io::Read trait. This is especially useful when writing tests.\n\n## Deprecation\nThis create is deprecated. `std::io::Read` is implemented for `\u0026'a [u8]`, which you can get from a String using the `as_bytes` [method](https://doc.rust-lang.org/std/string/struct.String.html#method.as_bytes).\n\n## Example\n\n```rust\nuse std::io::{Read, BufRead, BufReader};\nuse stringreader::StringReader;\n\nlet mut streader = StringReader::new(\"Line 1\\nLine 2\");\nlet mut bufreader = BufReader::new(streader);\nlet mut buffer = String::new();\n\nbufreader.read_line(\u0026mut buffer).unwrap();\nprintln!(\"{}\", buffer);\n```\n\nPrints \"Line 1\\n\".\n\n## Usage\n\nCargo.toml:\n```\n[dependencies]\nstringreader = \"*\"\n```\n\nlib.rs/main.rs:\n```rust\nextern crate stringreader;\n\nuse stringreader::StringReader;\n\n// ...\nlet mut reader = StringReader::new(\"this is a test\");\n// ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopard2a5%2Frust-stringreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleopard2a5%2Frust-stringreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopard2a5%2Frust-stringreader/lists"}