Cargo Features

[dependencies]
cargo-bpf = { version = "2.3.0", default-features = false, features = ["bindings", "build", "llvm10", "llvm11", "llvm12", "llvm13", "build-c", "command-line"] }
default = command-line, llvm12

These default features are set whenever cargo-bpf is added without default-features = false somewhere in the dependency tree.

bindings build? = bindgen, bpf-sys, proc-macro2, quote, syn, tempfile

Affects cargo-bpf::bindgen

build command-line = bindings, libc, redbpf, toml_edit
llvm10 = llvm-sys-100
llvm11 = llvm-sys-110
llvm12 default = llvm-sys-120
llvm13 = llvm-sys-130
build-c
command-line default = build, clap, futures, hexdump, tokio

Enables load of redbpf

Required by the binary

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

clap command-line

Enables clap ^2.33

bindgen bindings?

Enables bindgen ^0.59.2

toml_edit build?

Enables toml_edit ^0.2

bpf-sys bindings?
redbpf build? command-line
futures command-line
tokio command-line
hexdump command-line
libc build?
syn bindings?

Enables syn ^1.0

quote bindings?
proc-macro2 bindings?
tempfile bindings?
llvm-sys-100 llvm10?

Enables llvm-sys ^100

llvm-sys-110 llvm11?

Enables llvm-sys ^110

llvm-sys-120 llvm12

Enables llvm-sys ^120

llvm-sys-130 llvm13?

Enables llvm-sys ^130