#bpf #ebpf #libbpf

libbpf-rs

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

12 releases (6 breaking)

0.7.2 Apr 6, 2021
0.7.0 Jan 24, 2021
0.6.1 Dec 28, 2020
0.5.0 Aug 26, 2020
0.3.0 Jul 14, 2020

#65 in Unix APIs

Download history 47/week @ 2020-12-25 67/week @ 2021-01-01 198/week @ 2021-01-08 338/week @ 2021-01-15 471/week @ 2021-01-22 446/week @ 2021-01-29 499/week @ 2021-02-05 609/week @ 2021-02-12 907/week @ 2021-02-19 879/week @ 2021-02-26 547/week @ 2021-03-05 678/week @ 2021-03-12 434/week @ 2021-03-19 295/week @ 2021-03-26 250/week @ 2021-04-02 255/week @ 2021-04-09

2,145 downloads per month
Used in below

LGPL-2.1 OR BSD-2-Clause

295KB
1.5K 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.7"

See full documentation here.

libbpf-cargo

crates.io badge

Cargo subcommand to build bpf programs

To use:

$ cargo install libbpf-cargo
$ cargo libbpf --help

See full documentation here.

Dependencies

~3.5MB
~72K SLoC