Cargo Features
[dependencies]
libbpf-sys-cross = { version = "1.4.3+v1.4.5", default-features = false, features = ["novendor", "vendored", "vendored-libbpf", "vendored-libelf", "vendored-zlib", "static", "static-libbpf", "static-libelf", "static-zlib", "bindgen-source"] }
- default = vendored-libbpf
-
The
vendored-libbpf
feature is set by default wheneverlibbpf-sys-cross
is added without
somewhere in the dependency tree.default-features = false - novendor
-
Don't vendor anything.
This feature is for backward-compatibility only.
Set default-features = false instead. - vendored = vendored-libbpf, vendored-libelf, vendored-zlib
-
Meta-feature to use vendored versions of all dependencies.
- vendored-libbpf default vendored? = static-libbpf
-
Use vendored
libbpf
. Implies linking it statically.Affects
libbpf-sys-cross::API_HEADERS
… - vendored-libelf vendored? = static-libelf
-
Use vendored
libelf
. Implies linking it statically. - vendored-zlib vendored? = static-zlib
-
Use vendored
zlib
. Implies linking it statically. - static = static-libbpf, static-libelf, static-zlib
-
Meta-feature to link against all dependencies statically.
- static-libbpf static? static-libelf? static-zlib? vendored-libbpf
-
Link libbpf statically.
- static-libelf static? vendored-libelf? = static-libbpf
-
Link libelf statically. Implies linking libbpf statically, because libbpf is the libelf consumer.
- static-zlib static? vendored-zlib? = static-libbpf
-
Link zlib statically. Implies linking libbpf statically, because libbpf is the zlib consumer.
- bindgen-source = bindgen
-
Generate bindings into source directory, should only be used for local binding source updating. User should use "bindgen" feature flag instead.
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.
- bindgen build bindgen-source?
-
Enables bindgen ^0.69.4