-
Notifications
You must be signed in to change notification settings - Fork 49
/
Cargo.toml
63 lines (59 loc) · 2.01 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
[package]
name = "libbpf-sys"
version = "1.5.0+v1.5.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 <[email protected]>",
"Dan Siemon <[email protected]>",
"Daniel Xu <[email protected]>",
]
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.70.1", optional = true }
cc = "^1.1.6"
pkg-config = "^0.3.30"
nix = { version = "^0.29.0", default-features = false, features = ["fs"] }
[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"]