-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
47 lines (41 loc) · 965 Bytes
/
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
[workspace]
members = [
".",
"event",
"server",
]
[package]
name = "bpf-mem"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "bpf-mem-kern"
path = "src/main.rs"
required-features = ["kern"]
[[bin]]
name = "bpf-mem-user"
path = "src/main.rs"
required-features = ["user"]
[dependencies]
ebpf-kern = { version = "0.2.0", optional = true }
ebpf-user = { version = "0.2.0", optional = true }
passfd = { version = "0.1.6", optional = true }
ctrlc = { version = "3.4", optional = true }
env_logger = { version = "0.10.1", default-features = false, optional = true }
log = { version = "0.4.20", optional = true }
serde = { version = "1.0", optional = true }
event = { path = "event", optional = true }
server = { path = "server", optional = true }
[features]
default = ["user"]
kern = ["ebpf-kern/macros", "event"]
user = [
"ebpf-user/macros",
"passfd",
"ctrlc",
"env_logger",
"log",
"serde/derive",
"event",
"server",
]