[](https://github.com/libbpf/libbpf-rs/actions/workflows/test.yml)
[](https://blog.rust-lang.org/2024/10/17/Rust-1.82.0/)
# libbpf-rs
[](https://crates.io/crates/libbpf-rs)
Idiomatic Rust wrapper around [libbpf](https://github.com/libbpf/libbpf).
- [Changelog](CHANGELOG.md)
To use in your project, add into your `Cargo.toml`:
```toml
[dependencies]
libbpf-rs = "0.26.0"
```
See [full documentation here](https://docs.rs/libbpf-rs).
This crate adheres to Cargo's [semantic versioning rules][cargo-semver]. 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](../CONTRIBUTING.md) for more information.
[cargo-semver]: https://doc.rust-lang.org/cargo/reference/resolver.html#semver-compatibility