{"id":39036883,"url":"https://github.com/polyverse/rmesg","last_synced_at":"2026-01-17T17:44:51.103Z","repository":{"id":47155889,"uuid":"259843829","full_name":"polyverse/rmesg","owner":"polyverse","description":"A 'dmesg' implementation in Rust","archived":false,"fork":false,"pushed_at":"2022-06-11T03:20:07.000Z","size":115,"stargazers_count":94,"open_issues_count":0,"forks_count":9,"subscribers_count":7,"default_branch":"main","last_synced_at":"2023-03-08T12:07:42.364Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polyverse.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":"2020-04-29T06:31:20.000Z","updated_at":"2023-01-21T22:57:56.000Z","dependencies_parsed_at":"2022-08-12T13:11:53.754Z","dependency_job_id":null,"html_url":"https://github.com/polyverse/rmesg","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/polyverse/rmesg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyverse%2Frmesg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyverse%2Frmesg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyverse%2Frmesg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyverse%2Frmesg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polyverse","download_url":"https://codeload.github.com/polyverse/rmesg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyverse%2Frmesg/sbom","scorecard":{"id":740592,"data":{"date":"2025-08-11","repo":{"name":"github.com/polyverse/rmesg","commit":"427542802320aeaa2e0053c85f20fd0073b018bd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"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":"Code-Review","score":1,"reason":"Found 3/21 approved changesets -- score normalized to 1","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/polyverse/rmesg/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/polyverse/rmesg/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/polyverse/rmesg/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/polyverse/rmesg/release.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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: Apache License 2.0: 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.18 not signed: https://api.github.com/repos/polyverse/rmesg/releases/55871100","Warn: release artifact v0.1.17 not signed: https://api.github.com/repos/polyverse/rmesg/releases/55862572","Warn: release artifact v1.0.16 not signed: https://api.github.com/repos/polyverse/rmesg/releases/45625099","Warn: release artifact v1.0.15 not signed: https://api.github.com/repos/polyverse/rmesg/releases/45496681","Warn: release artifact v1.0.14 not signed: https://api.github.com/repos/polyverse/rmesg/releases/38802502","Warn: release artifact v1.0.18 does not have provenance: https://api.github.com/repos/polyverse/rmesg/releases/55871100","Warn: release artifact v0.1.17 does not have provenance: https://api.github.com/repos/polyverse/rmesg/releases/55862572","Warn: release artifact v1.0.16 does not have provenance: https://api.github.com/repos/polyverse/rmesg/releases/45625099","Warn: release artifact v1.0.15 does not have provenance: https://api.github.com/repos/polyverse/rmesg/releases/45496681","Warn: release artifact v1.0.14 does not have provenance: https://api.github.com/repos/polyverse/rmesg/releases/38802502"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 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"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0139","Warn: Project is vulnerable to: RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr","Warn: Project is vulnerable to: RUSTSEC-2024-0375","Warn: Project is vulnerable to: RUSTSEC-2022-0078 / GHSA-f85w-wvc7-crwc","Warn: Project is vulnerable to: RUSTSEC-2021-0093 / GHSA-pqqp-xmhj-wgcw","Warn: Project is vulnerable to: RUSTSEC-2022-0041 / GHSA-qc84-gqf4-9926","Warn: Project is vulnerable to: RUSTSEC-2022-0013 / GHSA-m5pq-gvj9-9vr8","Warn: Project is vulnerable to: RUSTSEC-2021-0127","Warn: Project is vulnerable to: RUSTSEC-2023-0001 / GHSA-7rrj-xr53-82p7","Warn: Project is vulnerable to: RUSTSEC-2023-0005 / GHSA-4q83-7cq4-p6wg","Warn: Project is vulnerable to: GHSA-rr8g-9fpq-6wmg","Warn: Project is vulnerable to: RUSTSEC-2025-0023"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T17:19:15.211Z","repository_id":47155889,"created_at":"2025-08-22T17:19:15.211Z","updated_at":"2025-08-22T17:19:15.211Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28513975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":"2026-01-17T17:44:50.349Z","updated_at":"2026-01-17T17:44:51.091Z","avatar_url":"https://github.com/polyverse.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATION NOTICE\n\nPlease note that this repository has been deprecated and is no longer actively maintained by Polyverse Corporation.  It may be removed in the future, but for now remains public for the benefit of any users.\n\nImportantly, as the repository has not been maintained, it may contain unpatched security issues and other critical issues.  Use at your own risk.\n\nWhile it is not maintained, we would graciously consider any pull requests in accordance with our Individual Contributor License Agreement.  https://github.com/polyverse/contributor-license-agreement\n\nFor any other issues, please feel free to contact info@polyverse.com\n\n---\n\n![Build Status](https://github.com/polyverse/rmesg/workflows/Build%20Status/badge.svg)\n\n# rmesg\n\nA 'dmesg' implementation in Rust\n\n## As a command-line utility\n\n### Obtain the latest release binary\n\n```.bash\nwget https://github.com/polyverse/rmesg/releases/latest/download/rmesg\nchmod a+x ./rmesg\n# Optionally move to a stable location\nmv ./rmesg /usr/local/bin\n```\n\n### Cargo Install\n\n```.bash\ncargo install rmesg\n```\n\n### Usage\n\n```.bash\nrmesg: A 'dmesg' port onto Rust 1.0.0\nArchis Gore \u003carchis@polyverse.com\u003e\nReads (and prints) the kernel log buffer. Does not support all dmesg options (yet).\n\nUSAGE:\n    rmesg [FLAGS] [OPTIONS]\n\nFLAGS:\n    -c               Clear ring buffer after printing (only when using klogctl)\n    -f               When specified, follows logs (like tail -f)\n    -h, --help       Prints help information\n    -r               Print raw data as it came from the source backend.\n    -V, --version    Prints version information\n\nOPTIONS:\n    -b \u003cbackend\u003e        Select backend from where to read the logs. klog is the syslog/klogctl system call through libc.\n                        kmsg is the /dev/kmsg file. [possible values: klogctl, devkmsg]\n```\n\n## As a Crate\n\nThe real value of this crate is  programmatic access to kernel buffer from Rust\nprograms, allowing a `dmesg` that can be consumed programmatically.\n\nThe complete API can be found in the `main.rs` file which uses the sync/async versions of the APIs, both single-shot and iterative.\n\n### Depend on the rmesg crate\n\nInclude it in Cargo.toml:\n\n```.toml\n[dependencies]\nrmesg = \"1.0.0\"\n```\n\nSuppots two features:\n\n* `async` - Exposes asynchronous Stream API\n* `sync` - Exposes synchronous Iterator API\n\n### Reading the buffer single-shot (non-blocking)\n\n*NOTE: Reading single-shot is the same interface for sync or async*\n\n```.rust\n    use rmesg;\n\n    // Read all logs as one big string with line-breaks\n    let raw = rmesg::logs_raw(opts.backend, opts.clear).unwrap();\n    print!(\"{}\", raw)\n\n    // Read logs as a Vec of Entry'ies (`Vec\u003cEntry\u003e`)\n    // and can be processed entry-by-entry\n    let entries = rmesg::log_entries(opts.backend, opts.clear).unwrap();\n    for entry in entries {\n        println!(\"{}\", entry)\n    }\n```\n\n### Indefinitely iterating\n\nWith feature `sync` (i.e. synchronous), provides an Iterator over Result\u003cEntry, RMesgError\u003e.\n\n```.rust\n    use rmesg;\n\n    let entries = rmesg::logs_iter(opts.backend, opts.clear, opts.raw)?;\n    for maybe_entry in entries {\n        let entry = maybe_entry?;\n        println!(\"{}\", entry);\n    }\n```\n\nWith feature `async` (i.e. asynchronous), provides a Stream over Result\u003cEntry, RMesgError\u003e.\n\n```.rust\n    use rmesg;\n\n    // given that it's a stream over Result's, use the conveniences provided to us\n    use futures_util::stream::TryStreamExt;\n\n    let mut entries = rmesg::logs_stream(opts.backend, opts.clear, opts.raw).await?;\n\n    while let Some(entry) = entries.try_next().await? {\n        println!(\"{}\", entry);\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyverse%2Frmesg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolyverse%2Frmesg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyverse%2Frmesg/lists"}