{"id":23816741,"url":"https://github.com/0xpr03/linebuffer","last_synced_at":"2025-10-04T08:50:50.770Z","repository":{"id":62442256,"uuid":"211162137","full_name":"0xpr03/LineBuffer","owner":"0xpr03","description":"(circular) ringbuffer for lines of bytes (IO buffer over [u8] with line count)","archived":false,"fork":false,"pushed_at":"2019-10-17T18:31:47.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T07:07:15.960Z","etag":null,"topics":["circular","linebuffer","performance","ringbuffer","rust"],"latest_commit_sha":null,"homepage":"","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/0xpr03.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-09-26T19:01:51.000Z","updated_at":"2023-07-29T08:24:35.000Z","dependencies_parsed_at":"2022-11-01T23:33:21.417Z","dependency_job_id":null,"html_url":"https://github.com/0xpr03/LineBuffer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/0xpr03/LineBuffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xpr03%2FLineBuffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xpr03%2FLineBuffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xpr03%2FLineBuffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xpr03%2FLineBuffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xpr03","download_url":"https://codeload.github.com/0xpr03/LineBuffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xpr03%2FLineBuffer/sbom","scorecard":{"id":807,"data":{"date":"2025-08-11","repo":{"name":"github.com/0xpr03/LineBuffer","commit":"7aab88b4a2200ac82403cce9b6769f9da00045a5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 2/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T12:28:22.467Z","repository_id":62442256,"created_at":"2025-08-14T12:28:22.467Z","updated_at":"2025-08-14T12:28:22.467Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273982878,"owners_count":25202090,"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-09-06T02:00:13.247Z","response_time":2576,"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":["circular","linebuffer","performance","ringbuffer","rust"],"created_at":"2025-01-02T04:32:05.324Z","updated_at":"2025-10-04T08:50:45.747Z","avatar_url":"https://github.com/0xpr03.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### LineBuffer - ringbuffer but for elements of different sizes\n\n[![crates.io](https://img.shields.io/crates/v/linebuffer.svg)](https://crates.io/crates/linebuffer)\n[![docs.rs](https://docs.rs/linebuffer/badge.svg)](https://docs.rs/linebuffer)\n[![Build Status](https://travis-ci.com/0xpr03/linebuffer.svg?branch=master)](https://travis-ci.com/0xpr03/linebuffer)\n\nThis crate is specifically for the following use case:\n\n- high throughput of data\n- infrequent read of entries or the whole buffer\n- entries are distinguishable arrays of bytes\n- data has dynamic size\n- numbering is infinite\n\nYou can use it for example to buffer the stdout of a process per line.  \nIt allows setting the amount of last lines to store and the size of bytes before wrapping.\n\n#### Example\n\n```rust\nuse linebuffer::{typenum, LineBuffer};\n\n// create a buffer of max 2048 entries/lines and 512KB data cache\n// with the additional flag type ()\nlet mut buffer: LineBuffer\u003c(), typenum::U2048\u003e = LineBuffer::new(512_000);\n\nlet data = String::from(\"Some data stuff\");\nbuffer.insert(data.as_bytes(),());\nassert_eq!(buffer.get(0),Some((data.as_bytes(), \u0026())));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpr03%2Flinebuffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xpr03%2Flinebuffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpr03%2Flinebuffer/lists"}