7 releases

Uses new Rust 2021

0.1.1 Aug 28, 2022
0.1.0 Jul 15, 2022
0.0.5 May 24, 2022

#6 in #xdp

37 downloads per month

BSD-2-Clause

77KB
1.5K SLoC

bpf-feature

A Rust library for BPF feature detection


Background

eBPF support is a moving target when it comes to Linux versions. Knowing what our kernels currently support is necessary to determine which BPF features we can enable in the programs we write.

The checks here are modeled after bpftool's feature probe functionality.

Install

crates.io badge crates.io badge crates.io badge

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

[dependencies]
bpf-feature = "0.0.5"

or using cargo-edit:

$ cargo add bpf-feature

Documentation

See documentation here

License

BSD 2-Clause - Maintained by bpfdeploy.io

Dependencies

~3.5MB
~85K SLoC