Crates.io | bpf-feature |
lib.rs | bpf-feature |
version | 0.1.1 |
source | src |
created_at | 2022-05-09 15:06:30.083439 |
updated_at | 2022-08-28 19:10:35.562606 |
description | A library for eBPF feature detection |
homepage | https://bpfdeploy.io |
repository | https://github.com/bpfdeploy-io/bpf-rs |
max_upload_size | |
id | 583268 |
size | 135,025 |
A Rust library for BPF feature detection
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.
To use in your project, add into your Cargo.toml
:
[dependencies]
bpf-feature = "0.0.5"
or using cargo-edit:
$ cargo add bpf-feature
BSD 2-Clause - Maintained by bpfdeploy.io