2024-12-03 21:47:12 +08:00
|
|
|
[package]
|
|
|
|
|
name = "helper"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "helper"
|
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
windows-service = { version = "0.7.0", optional = true }
|
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
|
anyhow = "1.0.93"
|
|
|
|
|
warp = "0.3.7"
|
|
|
|
|
serde = { version = "1.0.215", features = ["derive"] }
|
2026-08-05 10:55:33 +08:00
|
|
|
serde_json = "1.0"
|
2024-12-03 21:47:12 +08:00
|
|
|
once_cell = "1.20.2"
|
2025-04-18 17:50:46 +08:00
|
|
|
sha2 = "0.10.8"
|
2024-12-03 21:47:12 +08:00
|
|
|
|
2026-08-05 10:55:33 +08:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
2026-10-05 08:24:15 +08:00
|
|
|
tokio-stream = { version = "0.1", default-features = false }
|
2026-09-05 20:09:31 +08:00
|
|
|
windows-sys = { version = "0.52.0", features = [
|
|
|
|
|
"Win32_Foundation",
|
2026-10-05 08:24:15 +08:00
|
|
|
"Win32_NetworkManagement_IpHelper",
|
2026-09-05 20:09:31 +08:00
|
|
|
"Win32_Security",
|
2026-10-05 08:24:15 +08:00
|
|
|
"Win32_Security_Authorization",
|
2026-09-05 20:09:31 +08:00
|
|
|
"Win32_Storage_FileSystem",
|
|
|
|
|
"Win32_System_JobObjects",
|
2026-10-08 03:57:37 +08:00
|
|
|
"Win32_System_Registry",
|
2026-09-05 20:09:31 +08:00
|
|
|
"Win32_System_Threading",
|
|
|
|
|
] }
|
|
|
|
|
|
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
|
|
|
libc = "0.2"
|
|
|
|
|
tokio-stream = { version = "0.1", default-features = false }
|
2024-12-03 21:47:12 +08:00
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
|
panic = "abort"
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
lto = true
|
2025-04-18 17:50:46 +08:00
|
|
|
opt-level = "s"
|