# foniod/redbpf

Rust library for building and running BPF/eBPF modules

Repository: https://github.com/foniod/redbpf
Canonical: https://ross.abutalabs.com/products/redbpf
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust-library, ebpf, rust-ffi, ffi-bindings
Archived: true
Last push: 2023-06-30T10:23:27+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2900, "days_push": 1160, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1721, forks 135 (observed 2026-08-28T04:05:26.800628+00:00)

## What it is
RedBPF is a Rust eBPF toolchain consisting of libraries and a cargo subcommand for writing, building, and loading eBPF programs. It provides idiomatic Rust APIs for both kernel-side BPF probes and userspace loaders with support for many BPF map and program types.

## Use cases
- write eBPF kernel probes in Rust
- load eBPF programs and access BPF maps from userspace
- attach kprobes, uprobes, tracepoints, or XDP programs
- stream perf events asynchronously to userspace
- generate Rust bindings from kernel headers or vmlinux BTF
- build eBPF programs with a cargo subcommand

## When to choose
- you want to develop eBPF programs entirely in Rust
- you need a userspace loader with async perf event streams
- you want declarative macros for defining BPF maps and probe programs

## When to avoid
- you need a cross-platform eBPF solution (Linux only)
- you prefer C-based tooling like libbpf or BCC
- you need actively maintained releases (last release mid-2023)

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, developer-tools, compiler, build-tool
- domain: developer-tools, operating-systems, security, monitoring
- platform: rust, cli
- tags: ebpf, bpf, kernel-probes, tracing, rust-ffi, cargo-subcommand, btf, linux

## Member repositories
- foniod/redbpf (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.800628+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:02.221379+00:00, confidence not recorded.
  - readme: https://github.com/foniod/redbpf (fetched 2026-08-28T04:05:26.800628+00:00, sha 8c73d0e460ab)
  - registry_crates: https://crates.io/api/v1/crates/redbpf (fetched 2026-08-29T11:09:42.283183+00:00, sha 1f03ab6bbbce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
