-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
67 lines (58 loc) · 1.71 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "heartbeat-windows"
description = "Heartbeat client for Windows. Can be used as an action in Task Scheduler."
license = "MPL-2.0"
authors = ["Isis <[email protected]>"]
repository = "https://github.com/5HT2B/heartbeat-windows"
version = "0.1.1-a"
edition = "2021"
publish = false
default-run = "heartbeat-client"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
curl = { version = "0.4", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
toml = { version = "0.8", default-features = false, features = ["parse"], optional = true }
tracing = { version = "0.1", optional = true }
tracing-appender = { version = "0.2", optional = true }
tracing-subscriber = { version = "0.3", optional = true }
heartbeat-sys = { git = "https://git.5ht2.me/lmaotrigine/heartbeat-sys", features = ["cli"] }
anyhow = "1"
clap = { version = "4", features = ["derive", "wrap_help"] }
[dependencies.windows-sys]
version = "0.52"
features = [
"Win32_Foundation",
"Win32_Security_Authorization",
"Win32_System_LibraryLoader",
"Win32_System_StationsAndDesktops",
"Win32_System_SystemInformation",
"Win32_System_WindowsProgramming",
"Win32_UI_Input_KeyboardAndMouse",
]
[build-dependencies]
heartbeat-sys = { git = "https://git.5ht2.me/lmaotrigine/heartbeat-sys" }
[features]
task_runner = [
"serde",
"toml",
"curl",
"tracing",
"tracing-appender",
"tracing-subscriber",
]
[lib]
name = "heartbeat"
[[bin]]
name = "heartbeat-client"
path = "src/main.rs"
[[bin]]
name = "heartbeat-task"
path = "src/bin/task.rs"
required-features = ["task_runner"]
[profile.release]
lto = true
opt-level = 'z'
panic = 'abort'
strip = true
codegen-units = 1