From 8afad9f79be93140d8b4a53f3daf61606a1283c4 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sat, 16 Nov 2024 09:51:18 +0200 Subject: [PATCH] core: Reduce library text size some more Apply some more tricks from to reduce text size by 1 MB: https://github.com/johnthagen/min-sized-rust Before: penberg@vonneumann sqlite3 % ls -lh ../target/release/liblimbo_sqlite3.a -rw-r--r-- 1 penberg staff 6,7M 16 Mar 09:52 ../target/release/liblimbo_sqlite3.a After: penberg@vonneumann sqlite3 % ls -lh ../target/release/liblimbo_sqlite3.a -rw-r--r-- 1 penberg staff 5,6M 16 Mar 09:50 ../target/release/liblimbo_sqlite3.a --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 6c877d47b..36d0551ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,6 +47,8 @@ dist = false github-attestations = true [profile.release] +codegen-units = 1 +panic = "abort" lto = true [profile.dist]