-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
90 lines (76 loc) · 1.83 KB
/
Cargo.toml
File metadata and controls
90 lines (76 loc) · 1.83 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[package]
name = "proc-ctl"
version = "0.4.1"
edition = "2021"
description = "A helper library for querying and manipulating processes"
license = "MPL-2.0"
repository = "https://github.com/EphyraSoftware/proc-ctl"
[[bin]]
name = "port-binder"
path = "./sample/port-binder/main.rs"
test = false
doc = false
doctest = false
bench = false
[[bin]]
name = "port-binder-v6"
path = "./sample/port-binder-v6/main.rs"
test = false
doc = false
doctest = false
bench = false
[[bin]]
name = "proc-runner"
path = "./sample/proc-runner/main.rs"
test = false
doc = false
doctest = false
bench = false
[[bin]]
name = "udp-port-binder"
path = "./sample/udp-port-binder/main.rs"
test = false
doc = false
doctest = false
bench = false
[[bin]]
name = "udp-port-binder-v6"
path = "./sample/udp-port-binder-v6/main.rs"
test = false
doc = false
doctest = false
bench = false
[[bin]]
name = "waiter"
path = "./sample/waiter/main.rs"
test = false
doc = false
doctest = false
bench = false
[dependencies]
thiserror = "1"
retry = { version = "2.0.0", optional = true }
tokio = { version = "1", features = ["time"], optional = true }
async-recursion = { version = "1", optional = true }
sysinfo = { version = "0.32.0", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
procfs = "0.17"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58", features = ["Win32_Networking", "Win32_Networking_WinSock", "Win32_NetworkManagement_IpHelper"] }
[dev-dependencies]
retry = "2.0.0"
tokio = { version = "1", features = ["time", "rt", "macros"] }
[features]
default = ["proc"]
resilience = [
"dep:retry"
]
async = [
"dep:tokio",
"dep:async-recursion"
]
# Included as a default feature but because sysinfo is relatively heavy-weight to initialise, so it's behind a feature
# flag to allow it to be disabled if desired.
proc = [
"dep:sysinfo",
]