-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
34 lines (28 loc) · 1.29 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
[package]
name = "insomnia"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.58", features = [
"Win32_Foundation",
"Win32_System_Power",
"Win32_System_Threading",
] }
[target.'cfg(target_os = "linux")'.dependencies]
dbus = "0.9.7"
libc = "0.2.158"
[build-dependencies]
cc = "1.1.15"
[profile.release]
opt-level = "z" # Optimize for size without sacrificing too much performance
lto = "thin" # Enable ThinLTO, which is faster and reduces binary size
codegen-units = 1 # Compile all code in a single codegen unit for better optimizations
panic = "abort" # Reduce binary size by aborting on panic instead of unwinding
debug = 0 # No debug symbols in the release binary
rpath = false # Do not set the runtime library search path
incremental = false # Disable incremental compilation for a clean release build
overflow-checks = false # Disable integer overflow checks (enabled by default in debug)
strip = "debuginfo" # Strip debuginfo, keeping symbols if needed for debugging
[profile.release.package."*"]
opt-level = "z" # Apply size optimizations globally