-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (42 loc) · 1.4 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
[package]
name = "xen-guest-agent"
version = "0.5.0-dev"
authors = ["Yann Dirson <[email protected]>"]
edition = "2018"
rust-version = "1.71"
license = "AGPL-3.0-only"
[dependencies]
futures = "0.3.26"
libc = "0.2.139"
tokio = { version = "1.25.0", features = ["full"] }
netlink-packet-core = { version = "0.7.0", optional = true }
netlink-packet-route = { version = ">=0.18.0, <0.20", optional = true }
netlink-proto = { version = "0.11.2", optional = true }
rtnetlink = { version = "0.14.0", optional = true }
async-stream = "0.3.4"
os_info = { version = "3", default-features = false }
pnet_datalink = { version = "*", optional = true }
pnet_base = { version = "*", optional = true }
ipnetwork = { version = "*", optional = true }
log = "0.4.0"
env_logger = ">=0.10.0"
clap = { version = "4.4.8", features = ["derive"] }
[dependencies.xenstore-rs]
optional = true
version = "0.7.0"
#git = "https://github.com/Wenzel/xenstore.git"
default-features = false
[target.'cfg(unix)'.dependencies]
uname = "0.1.1"
syslog = "6.0"
[target.'cfg(target_os = "freebsd")'.dependencies]
sysctl = "0.5.0"
[features]
default = ["xenstore", "net_netlink"]
xenstore = ["dep:xenstore-rs"]
static = ["xenstore-rs?/static"]
net_netlink = ["dep:netlink-proto", "dep:netlink-packet-core", "dep:netlink-packet-route",
"dep:rtnetlink"]
net_pnet = ["dep:pnet_datalink", "dep:pnet_base", "dep:ipnetwork"]
[profile.release]
lto = true