#bpf #ebpf #libbpf

libbpf-rs

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

30 releases (18 breaking)

0.19.1 Oct 13, 2022
0.18.0 Jul 15, 2022
0.16.0 Jan 10, 2022
0.15.0 Dec 3, 2021
0.3.0 Jul 14, 2020

#90 in Unix APIs

Download history 3865/week @ 2022-10-08 3173/week @ 2022-10-15 2674/week @ 2022-10-22 3625/week @ 2022-10-29 3816/week @ 2022-11-05 3287/week @ 2022-11-12 2275/week @ 2022-11-19 3929/week @ 2022-11-26 3453/week @ 2022-12-03 3489/week @ 2022-12-10 1886/week @ 2022-12-17 1038/week @ 2022-12-24 1874/week @ 2022-12-31 1226/week @ 2023-01-07 449/week @ 2023-01-14 504/week @ 2023-01-21

4,183 downloads per month
Used in 4 crates

LGPL-2.1 OR BSD-2-Clause

565KB
2.5K SLoC

CI rustc

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.18"

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.12"

See full documentation here.

Contributing

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

Dependencies

~5MB
~89K SLoC