From 3eb0efc6e4feeaf38d1c23f31bc16f069c36ca5d Mon Sep 17 00:00:00 2001 From: Abdelrahman Ashraf Date: Wed, 18 Dec 2024 13:18:04 +0700 Subject: [PATCH] feat: optimize android/ios release binaries for size --- 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"]