Use linker time optimization for release builds (#47)

This reduces total package size by ~25%. There are no runtime
consequences, though this does nearly double build times. But
with the cargo workspace, this repo builds pretty quick.
As well the same `lto` settings are already used in cosmic-comp.
This commit is contained in:
Brock 2022-12-29 13:13:47 -07:00 committed by GitHub
parent cf41b2a1b5
commit 5c4aff2c9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,3 +14,6 @@ members = [
[patch.crates-io]
zbus = {git = "https://gitlab.freedesktop.org/dbus/zbus", branch = "main"}
[profile.release]
lto = "fat"