From 52ad51382abfec2158e92975049fcf5f3cf2a25b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 7 Mar 2025 17:45:31 -0700 Subject: [PATCH] [fontations] Enable lto Makes library size shrink by half, as well as remove all the cruft from the public symbol list. --- src/fontations/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fontations/Cargo.toml b/src/fontations/Cargo.toml index dc02d7c30..b940c1450 100644 --- a/src/fontations/Cargo.toml +++ b/src/fontations/Cargo.toml @@ -11,6 +11,9 @@ name = "harfbuzz_fontations" path = "lib.rs" crate-type = ["staticlib"] +[profile.release] +lto = true + [profile.debugoptimized] inherits = "release" debug = true