forked from davibe/bpf-linker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
43 lines (38 loc) · 1.21 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
[package]
name = "bpf-linker"
version = "0.9.6"
authors = ["Alessandro Decina <[email protected]>"]
description = "BPF static linker"
license = "MIT OR Apache-2.0"
keywords = ["BPF", "eBPF", "linker", "llvm"]
categories = ["development-tools", "command-line-utilities", "no-std", "os::linux-apis"]
repository = "https://github.com/aya-rs/bpf-linker"
readme = "README.md"
edition = "2021"
[dependencies]
# cli deps
clap = { version = "4.0", optional = true, features = ["derive"] }
simplelog = {version = "0.7.6", optional = true}
# lib deps
libc = "0.2"
thiserror = { version = "1.0", optional = true }
ar = { version = "0.8", optional = true }
log = { version = "0.4", optional = true }
llvm-sys = { version = "160", optional = true }
aya-rustc-llvm-proxy = { version = "0.5.0", optional = true }
[dev-dependencies]
compiletest_rs = { version = "0.5", path = "third-party/compiletest-rs" }
which = "4.2"
[[bin]]
name = "bpf-linker"
[features]
llvm-proxy = [
"aya-rustc-llvm-proxy",
"llvm-sys/no-llvm-linking",
"llvm-sys/disable-alltargets-init"
]
lib = ["thiserror", "ar", "log"]
cli = ["clap", "simplelog"]
system-llvm = ["cli", "lib", "llvm-sys"]
rust-llvm = ["cli", "lib", "llvm-proxy"]
default = ["rust-llvm"]