Skip to content

Commit 49ccd13

Browse files
committed
chore: add release profile to reduce binary size and fix OOM builds
Adds `strip = true` and `lto = "thin"` to the release profile to drastically reduce the compiled binary size. This prevents out-of-storage/OOM errors during container builds, especially given the heavy dependencies like LanceDB and DataFusion.
1 parent 090ec0d commit 49ccd13

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,8 @@ unimplemented = "forbid"
145145

146146
[dev-dependencies]
147147
tokio-test = "0.4"
148+
149+
[profile.release]
150+
lto = "thin"
151+
strip = true
152+

0 commit comments

Comments
 (0)