forked from libbpf/libbpf-sys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
64 lines (60 loc) · 2.03 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[package]
name = "libbpf-sys"
version = "1.4.0+v1.4.0"
description = "Rust bindings to libbpf from the Linux kernel"
readme = "README.md"
repository = "https://github.com/libbpf/libbpf-sys"
homepage = "https://github.com/libbpf/libbpf-sys"
keywords = ["bpf", "ebpf", "xdp"]
authors = [
"Alex Forster <alex@alexforster.com>",
"Dan Siemon <dan@coverfire.com>",
"Daniel Xu <dxu@dxuuu.xyz>",
]
license = "BSD-2-Clause"
edition = "2018"
build = "build.rs"
links = "libbpf"
exclude = [
"/elfutils/tests/*.bz2",
"/libbpf/assets",
"/zlib/contrib",
]
[badges]
github = { repository = "libbpf/libbpf-sys" }
maintenance = { status = "passively-maintained" }
[build-dependencies]
bindgen = { version = "^0.69.4", optional = true }
cc = "^1.0.90"
pkg-config = "^0.3.30"
nix = { version = "^0.27.1", default-features = false, features = ["fs"] }
num_cpus = "^1.16.0"
[lib]
crate-type = ["lib", "staticlib"]
[features]
default = ["vendored-libbpf"]
# Don't vendor anything.
# This feature is for backward-compatibility only.
# Set default-features = false instead.
novendor = []
# Meta-feature to use vendored versions of all dependencies.
vendored = ["vendored-libbpf", "vendored-libelf", "vendored-zlib"]
# Use vendored `libbpf`. Implies linking it statically.
vendored-libbpf = ["static-libbpf"]
# Use vendored `libelf`. Implies linking it statically.
vendored-libelf = ["static-libelf"]
# Use vendored `zlib`. Implies linking it statically.
vendored-zlib = ["static-zlib"]
# Meta-feature to link against all dependencies statically.
static = ["static-libbpf", "static-libelf", "static-zlib"]
# Link libbpf statically.
static-libbpf = []
# Link libelf statically. Implies linking libbpf statically, because libbpf is
# the libelf consumer.
static-libelf = ["static-libbpf"]
# Link zlib statically. Implies linking libbpf statically, because libbpf is
# the zlib consumer.
static-zlib = ["static-libbpf"]
# Generate bindings into source directory, should only be used for local
# binding source updating. User should use "bindgen" feature flag instead.
bindgen-source = ["bindgen"]