-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
118 lines (105 loc) · 2.84 KB
/
Cargo.toml
File metadata and controls
118 lines (105 loc) · 2.84 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[package]
name = "clash_verge_service_ipc"
version = "2.1.3"
edition = "2024"
authors = ["Tunglies"]
license = "GPL-3.0"
[lib]
name = "clash_verge_service_ipc"
path = "src/lib.rs"
[[bin]]
name = "clash-verge-service"
path = "src/bin/service.rs"
required-features = ["standalone"]
[[bin]]
name = "clash-verge-service-install"
path = "src/bin/install_service.rs"
required-features = ["standalone"]
[[bin]]
name = "clash-verge-service-uninstall"
path = "src/bin/uninstall_service.rs"
required-features = ["standalone"]
[[bin]]
name = "mock_binary"
path = "src/bin/mock_binary.rs"
required-features = ["test"]
[[bin]]
name = "service-integration-driver"
path = "src/bin/service_integration_driver.rs"
required-features = ["client"]
[features]
standalone = [
"kode-bridge",
"http",
"tracing",
"tracing-subscriber",
"tokio",
"anyhow",
"once_cell",
"serde_json",
"clash_verge_logger",
"flexi_logger",
"log",
"response",
"dep:platform_lib",
"dep:nix",
"compact_str",
]
client = [
"kode-bridge/client",
"anyhow",
"log",
"tokio",
"once_cell",
"serde_json",
"response",
"compact_str",
]
response = []
test = [
"flexi_logger",
"tracing",
"tracing-subscriber/env-filter",
"tracing-log",
]
default = []
[dependencies]
kode-bridge = { version = "0.3", features = ["server"], optional = true }
once_cell = { version = "1.21", features = ["parking_lot"], optional = true }
anyhow = { version = "1.0", optional = true }
http = { version = "1.3", optional = true }
serde = { version = "1.0", features = ["derive"], optional = false }
serde_json = { version = "1.0", optional = true }
strum = { version = "0.28", optional = false }
strum_macros = { version = "0.28", optional = false }
tokio = { version = "1.47", features = [
"process",
"io-util",
"rt-multi-thread",
"macros",
"signal",
"fs",
], optional = true }
tracing = { version = "0.1", optional = true }
tracing-subscriber = { version = "0.3", optional = true }
clash_verge_logger = { git = "https://github.com/clash-verge-rev/clash-verge-logger.git", version = "0.2.0", optional = true }
flexi_logger = { version = "0.31", optional = true }
log = { version = "0.4.28", optional = true }
tracing-log = { version = "0.2", optional = true }
compact_str = { version = "0.9", features = ["serde"], optional = true }
[target.'cfg(unix)'.dependencies]
platform_lib = { package = "libc", version = "0.2", optional = true }
nix = { version = "0.31", features = ["user"], optional = true }
[target.'cfg(windows)'.dependencies]
platform_lib = { package = "windows-service", version = "0.8", optional = true }
[dev-dependencies]
kode-bridge = { version = "0.3.4", default-features = false, features = [
"server",
"client",
] }
serial_test = "3.2"
[profile.release]
panic = "abort"
lto = "thin"
opt-level = 3
codegen-units = 1