[package] name = "cargo-bpf" version = "2.3.0" description = "Cargo plugin to manage eBPF probes using redbpf" repository = "https://github.com/foniod/redbpf" homepage = "https://foniod.org" documentation = "https://docs.rs/cargo-bpf/latest/cargo_bpf_lib/" authors = ["Alessandro Decina ", "Peter Parkanyi ", "Junyeong Jeong "] edition = "2018" keywords = ["cargo", "redbpf", "bpf", "plugin", "subcommand"] categories = ["development-tools::cargo-plugins"] license = "MIT OR Apache-2.0" [lib] name = "cargo_bpf_lib" [[bin]] name = "cargo-bpf" required-features = ["command-line"] [dependencies] clap = { version = "2.33", optional = true } bindgen = {version = "0.59.2", default-features = false, features = ["runtime"], optional = true} toml_edit = { version = "0.2", optional = true } bpf-sys = { version = "2.3.0", path = "../bpf-sys", optional = true } redbpf = { version = "2.3.0", path = "../redbpf", default-features = false, optional = true } futures = { version = "0.3", optional = true } tokio = { version = "^1.0.1", features = ["rt", "macros", "signal"], optional = true } hexdump = { version = "0.1", optional = true } libc = {version = "0.2.66", optional = true} syn = { version = "1.0", features = ["full", "visit"], optional = true } quote = { version = "1.0", optional = true } proc-macro2 = {version = "1.0", optional = true} tempfile = { version = "3.1", optional = true} lazy_static = "1.0" glob = "0.3" anyhow = "1.0" llvm-sys-100 = { version = "100", optional = true, package = "llvm-sys" } llvm-sys-110 = { version = "110", optional = true, package = "llvm-sys" } llvm-sys-120 = { version = "120", optional = true, package = "llvm-sys" } llvm-sys-130 = { version = "130", optional = true, package = "llvm-sys" } cfg-if = "1.0" rustversion = "1.0" [features] default = ["command-line", "llvm12"] bindings = ["bpf-sys", "bindgen", "syn", "quote", "proc-macro2", "tempfile"] build = ["bindings", "libc", "toml_edit", "redbpf"] llvm10 = ["llvm-sys-100"] llvm11 = ["llvm-sys-110"] llvm12 = ["llvm-sys-120"] llvm13 = ["llvm-sys-130"] build-c = [] command-line = ["build", "clap", "redbpf/load", "futures", "tokio", "hexdump"] [package.metadata.docs.rs] all-features = false no-default-features = true features = ["command-line", "llvm10"] rustdoc-args = ["--cfg", "docsrs"]