mirror of
https://github.com/alemidev/scope-tui.git
synced 2024-11-23 14:14:48 +01:00
build: smaller release binaries
This commit is contained in:
parent
635db69aa8
commit
34e7927c74
1 changed files with 7 additions and 0 deletions
|
@ -27,3 +27,10 @@ libpulse-simple-binding = { version = "2.25", optional = true }
|
||||||
default = ["tui", "pulseaudio"]
|
default = ["tui", "pulseaudio"]
|
||||||
tui = ["dep:ratatui", "dep:crossterm"]
|
tui = ["dep:ratatui", "dep:crossterm"]
|
||||||
pulseaudio = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]
|
pulseaudio = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]
|
||||||
|
|
||||||
|
[profile.release] # make small binaries! will take quite longer, from https://github.com/johnthagen/min-sized-rust
|
||||||
|
opt-level = 'z' # optimize for size
|
||||||
|
lto = true # enable Link Time Optimisation: don't link unused stuff
|
||||||
|
codegen-units = 1 # reducing codegen units slows it down but allows for better optimization
|
||||||
|
panic = 'abort' # abort on panic: don't include code to show what went wrong in release
|
||||||
|
strip = "symbols" # strip symbols from binary: have fun debugging on prod! :)
|
||||||
|
|
Loading…
Reference in a new issue