#ebpf

bpf-feature

A library for eBPF feature detection

7 releases

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

#60 in #ebpf

BSD-2-Clause

78KB
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

~12MB
~282K SLoC