disabling LTO and optimizing for size cuts compile time almost in half, but increases the binary size from 2.1 to 2.5 MB. this tradeoff is worth it. performance is unaffected
27 lines
463 B
TOML
27 lines
463 B
TOML
[package]
|
|
name = "pacdef"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
alpm = "*"
|
|
anyhow = "*"
|
|
# clap 4 until (at least) 4.0.32 have scrapped actual color support. we stay on 3.x until that's fixed.
|
|
clap = "3.*"
|
|
path-absolutize = "*"
|
|
regex = "*"
|
|
serde_json = "*"
|
|
serde_yaml = "*"
|
|
serde_derive = "*"
|
|
serde = "*"
|
|
pacdef_macro = {path = "pacdef_macro/"}
|
|
|
|
[profile.release]
|
|
lto = "off"
|
|
opt-level = "z"
|
|
strip = true
|
|
|
|
[[bin]]
|
|
name = "pacdef"
|
|
path = "src/main.rs"
|