#bpf #ebpf #libbpf

libbpf-rs

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

26 releases (15 breaking)

new 0.16.0 Jan 10, 2022
0.15.0 Dec 3, 2021
0.14.0 Nov 10, 2021
0.11.2 Jul 16, 2021
0.3.0 Jul 14, 2020

#57 in Unix APIs

Download history 763/week @ 2021-09-26 495/week @ 2021-10-03 733/week @ 2021-10-10 584/week @ 2021-10-17 269/week @ 2021-10-24 500/week @ 2021-10-31 438/week @ 2021-11-07 387/week @ 2021-11-14 385/week @ 2021-11-21 460/week @ 2021-11-28 528/week @ 2021-12-05 953/week @ 2021-12-12 880/week @ 2021-12-19 539/week @ 2021-12-26 918/week @ 2022-01-02 1050/week @ 2022-01-09

3,472 downloads per month
Used in 3 crates

LGPL-2.1 OR BSD-2-Clause

555KB
2K SLoC

Rust

WARNING: The API is not stable and is subject to breakage. Any breakage will include a minor version bump pre-1.0 and a major version bump post-1.0. Semantic versioning will be followed post-1.0 release.

libbpf-rs

crates.io badge

Idiomatic rust wrapper around libbpf

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

[dependencies]
libbpf-rs = "0.14"

See full documentation here.

libbpf-cargo

crates.io badge

Helps you build and develop eBPF programs with standard rust tooling

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

[build-dependencies]
libbpf-cargo = "0.9"

See full documentation here.

Dependencies

~3.5MB
~79K SLoC