Registry / build-tool / libbpf-cargo

libbpf-cargo

JSON →
library0.26.1rscratesunverified

Cargo plugin to build BPF programs using libbpf.

# Cargo.toml [dependencies] libbpf-cargo = "0.26.1"
INSTALL
IMPORT
SIG · LIBBPF-CARGO
L
libbpf-cargo
build-toolrustv0.26.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SkeletonBuilder
use libbpf_cargo::SkeletonBuilder;

Build a BPF skeleton from a C source file.

use libbpf_cargo::SkeletonBuilder; fn main() { let _skeleton = SkeletonBuilder::new() .source("program.bpf.c") .build_and_generate() .unwrap(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.26.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
libbpf-cargo — cargo add libbpf-cargo · libregistry