{"id":13566392,"url":"https://github.com/rust-bpf/rust-bcc","last_synced_at":"2026-03-17T23:37:53.329Z","repository":{"id":37819169,"uuid":"120035883","full_name":"rust-bpf/rust-bcc","owner":"rust-bpf","description":"user-friendly rust bindings for the bpf compiler collection","archived":false,"fork":false,"pushed_at":"2023-10-25T20:00:32.000Z","size":3116,"stargazers_count":482,"open_issues_count":3,"forks_count":53,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-12-14T01:58:45.633Z","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/rust-bpf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-02-02T21:59:26.000Z","updated_at":"2025-12-03T07:00:28.000Z","dependencies_parsed_at":"2024-01-19T07:11:42.483Z","dependency_job_id":"29e235f0-9de1-41ef-ba98-a618be80de6e","html_url":"https://github.com/rust-bpf/rust-bcc","commit_stats":{"total_commits":199,"total_committers":28,"mean_commits":7.107142857142857,"dds":0.3668341708542714,"last_synced_commit":"639ceadfb11cadb946a7af510b61e2cc43a8df33"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/rust-bpf/rust-bcc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bpf%2Frust-bcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bpf%2Frust-bcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bpf%2Frust-bcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bpf%2Frust-bcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-bpf","download_url":"https://codeload.github.com/rust-bpf/rust-bcc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bpf%2Frust-bcc/sbom","scorecard":{"id":790403,"data":{"date":"2025-08-11","repo":{"name":"github.com/rust-bpf/rust-bcc","commit":"52e29c66613502960d08e8778c64bdb74e268199"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":3,"reason":"Found 11/30 approved changesets -- score normalized to 3","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/cargo.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":"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/cargo.yml:131: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:133: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:150: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:152: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:188: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:190: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:226: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:228: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:238: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:246: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:112: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:114: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:169: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:171: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:207: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:209: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/cargo.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/rust-bpf/rust-bcc/cargo.yml/master?enable=pin","Info:   0 out of  26 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":"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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 30 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-23T07:21:50.382Z","repository_id":37819169,"created_at":"2025-08-23T07:21:50.382Z","updated_at":"2025-08-23T07:21:50.382Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","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":"2024-08-01T13:02:08.658Z","updated_at":"2026-03-17T23:37:53.302Z","avatar_url":"https://github.com/rust-bpf.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# rust-bcc\n\n**Warning! Unmaintained!**\n\nWith the advances in other BPF crates in the Rust ecosystem, this crate is no\nlonger actively maintained. We recommend adopting [libbpf-rs](https://crates.io/crates/libbpf-rs)\n\n## About\n\nIdiomatic Rust bindings for the BPF compiler collection. The goal is to mimic the\nPython BCC bindings in https://github.com/iovisor/bcc in a Rusty way.\n\nThe C bcc API (as exposed in `bcc-sys`) is very powerful, but it's fairly nontrivial to try to use\nit by itself and manage all the resources it allocates safely.\n\nThis crate is currently experimental and has several things in it which are either unsafe or not\nparticularly idiomatic for Rust. Pull requests very much appreciated.\n\n## Prerequisites\n\n* bcc v0.4.0-v0.23.0\n\n## Static linking\n\nThis crate allows for statically linking libbpf/libbcc which enables the creation of tools which\nhave no runtime dependency on matching versions being present on target systems. To statically link,\nyou may need to compile several dependencies from source. See the `build/ci.sh` script for how those\ndependencies are built and how we build and run statically linked examples in CI.\n\n## Getting Started\n\nThe best way to learn about how to use this crate right now is to read the examples. The exciting\nthing about these examples is that the Rust version isn't really more verbose than the Python\nversion. In some ways the Rust code is more legible because it's much more natural to work with C\ndata structure in Rust than it is in Python.\n\n### Building\n\nThis library uses features to allow support for multiple versions of bcc. Depending on what version\nof bcc you have installed, you may need to use a feature flag while building the examples in-order\nto match the expected version of bcc with the version you have installed on your system.\n\n### Examples\n\n* [examples/strlen.rs](https://github.com/rust-bpf/rust-bcc/blob/master/examples/strlen.rs) uses a BPF hashmap to count frequencies of every string that `strlen` is run on. Port of [strlen_count.py](https://github.com/iovisor/bcc/blob/master/examples/tracing/strlen_count.py) to Rust.\n* [examples/opensnoop.rs](https://github.com/rust-bpf/rust-bcc/blob/master/examples/opensnoop.rs) uses perf events to track every time a file is opened on the system. Port of [opensnoop.py](https://github.com/iovisor/bcc/blob/master/tools/opensnoop.py) to Rust.\n* [examples/softirq.rs](https://github.com/rust-bpf/rust-bcc/blob/master/examples/softirqs.rs) uses\n  kernel tracepoints to report time spent in softirq handlers. Port of [softirqs.py](https://github.com/iovisor/bcc/blob/master/tools/softirqs.py) to Rust.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bpf%2Frust-bcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-bpf%2Frust-bcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bpf%2Frust-bcc/lists"}