bpf-feature

Crates.iobpf-feature
lib.rsbpf-feature
version0.1.1
sourcesrc
created_at2022-05-09 15:06:30.083439
updated_at2022-08-28 19:10:35.562606
descriptionA library for eBPF feature detection
homepagehttps://bpfdeploy.io
repositoryhttps://github.com/bpfdeploy-io/bpf-rs
max_upload_size
id583268
size135,025
Milan (mdaverde)

documentation

README

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

Commit count: 186

cargo fmt