[package]
name = "libbpf-rs"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
repository.workspace = true
homepage.workspace = true
license.workspace = true
description = "libbpf-rs is a safe, idiomatic, and opinionated wrapper around libbpf-sys"
readme = "README.md"
authors = ["Daniel Xu <dxu@dxuuu.xyz>", "Daniel Müller <deso@posteo.net>"]
keywords = ["bpf", "ebpf", "libbpf"]
[badges]
maintenance = { status = "actively-developed" }
[features]
default = ["libbpf-sys/vendored-libbpf"]
static = ["libbpf-sys/static"]
vendored = ["libbpf-sys/vendored"]
generate-test-files = ["libbpf-sys/vendored-libbpf", "dep:tempfile"]
dont-generate-test-files = []
[dependencies]
bitflags = "2.0"
libbpf-sys = { version = "1.4.1", default-features = false }
libc = "0.2"
vsprintf = "2.0"
[build-dependencies]
libbpf-sys = { version = "1.4.1", default-features = false, optional = true }
tempfile = { version = "3.3", optional = true }
[dev-dependencies]
libbpf-rs = {path = ".", features = ["generate-test-files"]}
libbpf-rs-dev = {path = "dev", features = ["generate-test-files"]}
log = "0.4.4"
memmem = "0.1.1"
plain = "0.2.3"
probe = "0.3"
scopeguard = "1.1"
serial_test = { version = "3.0", default-features = false }
tempfile = "3.3"
test-tag = "0.1"
_cc_unused = { package = "cc", version = "1.0.3" }
_pkg-config_unused = { package = "pkg-config", version = "0.3.3" }