From 5fffbe61429548b97de915a91809e8411285fc67 Mon Sep 17 00:00:00 2001 From: Abdelrahman Ashraf Date: Tue, 24 Dec 2024 12:37:59 +0700 Subject: [PATCH] feat: optimize android/ios release binaries for size (#274) --- dotlottie-ffi/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotlottie-ffi/Cargo.toml b/dotlottie-ffi/Cargo.toml index 945682d4..bb1b13b3 100644 --- a/dotlottie-ffi/Cargo.toml +++ b/dotlottie-ffi/Cargo.toml @@ -6,6 +6,9 @@ build = "build.rs" [profile.release] lto = true +opt-level = "z" +strip = true +codegen-units = 1 [lib] crate-type = ["staticlib", "cdylib", "rlib"]