mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-05 01:04:22 +01:00
build: Enable LTO for release builds
This reduces `liblimbo_sqlite3.a` binary size from 25 MB to 10 MB: Before: $ -lh ../target/release/liblimbo_sqlite3.a -rw-r--r-- 1 penberg staff 25M 15 Mar 18:36 ../target/release/liblimbo_sqlite3.a After: $ penberg@vonneumann sqlite3 % ls -lh ../target/release/liblimbo_sqlite3.a -rw-r--r-- 1 penberg staff 9,9M 15 Mar 18:59 ../target/release/liblimbo_sqlite3.a
This commit is contained in:
492
Cargo.lock
generated
492
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -46,6 +46,9 @@ dist = false
|
||||
# Whether to enable GitHub Attestations
|
||||
github-attestations = true
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
||||
[profile.dist]
|
||||
inherits = "release"
|
||||
lto = "thin"
|
||||
|
||||
Reference in New Issue
Block a user