38 releases (22 breaking)

0.23.0 Apr 2, 2024
0.22.1 Jan 4, 2024
0.22.0 Dec 6, 2023
0.21.2 Jul 31, 2023
0.3.0 Jul 14, 2020

#61 in Unix APIs

Download history 576/week @ 2024-01-01 815/week @ 2024-01-08 874/week @ 2024-01-15 1176/week @ 2024-01-22 833/week @ 2024-01-29 615/week @ 2024-02-05 576/week @ 2024-02-12 619/week @ 2024-02-19 1238/week @ 2024-02-26 1090/week @ 2024-03-04 1227/week @ 2024-03-11 1511/week @ 2024-03-18 1472/week @ 2024-03-25 2926/week @ 2024-04-01 2574/week @ 2024-04-08 2020/week @ 2024-04-15

9,117 downloads per month
Used in 19 crates (16 directly)

LGPL-2.1-only OR BSD-2-Clause

1MB
5.5K SLoC

Contains (ELF exe/lib, 1MB) tests/bin/taskiter.bpf.o, (ELF exe/lib, 725KB) tests/bin/mapiter.bpf.o, (ELF exe/lib, 755KB) tests/bin/runqslower.bpf.o, (ELF exe/lib, 21KB) tests/bin/uprobe.bpf.o, (ELF exe/lib, 19KB) tests/bin/usdt.bpf.o, (ELF exe/lib, 6KB) tests/bin/ksyscall.bpf.o and 7 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
~216K SLoC