#ebpf #libbpf

libbpf-rs-lightswitch

libbpf-rs is a safe, idiomatic, and opinionated wrapper around libbpf-sys

1 unstable release

new 0.23.3 Nov 19, 2024

#579 in Unix APIs

Download history 145/week @ 2024-11-17

145 downloads per month

LGPL-2.1-only OR BSD-2-Clause

1MB
6K SLoC

Contains (ELF exe/lib, 1MB) tests/bin/runqslower.bpf.o, (ELF exe/lib, 1MB) tests/bin/mapiter.bpf.o, (ELF exe/lib, 1MB) tests/bin/taskiter.bpf.o, (ELF exe/lib, 22KB) tests/bin/uprobe.bpf.o, (ELF exe/lib, 22KB) tests/bin/usdt.bpf.o, (ELF exe/lib, 7KB) tests/bin/ksyscall.bpf.o and 8 more.

CI rustc

libbpf-rs

crates.io badge

Idiomatic Rust wrapper around libbpf.

To use in your project, add into your Cargo.toml:

[dependencies]
libbpf-rs = "0.23"

See full documentation here.

This crate adheres to Cargo's semantic versioning rules. At a minimum, it builds with the most recent Rust stable release minus five minor versions ("N - 5"). E.g., assuming the most recent Rust stable is 1.68, the crate is guaranteed to build with 1.63 and higher.

Contributing

We welcome all contributions! Please see the contributor's guide for more information.

Dependencies

~9MB
~210K SLoC