diff --git a/Cargo.toml b/Cargo.toml index da433a839..6d20e9a0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,9 @@ edition = "2018" license = "MPL" [profile.release] +opt-level = 'z' # Optimize for size. lto = true +# codegen-units = 1 [dependencies] deltachat_derive = { path = "./deltachat_derive" } diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml index 228140e66..949d99c2c 100644 --- a/deltachat-ffi/Cargo.toml +++ b/deltachat-ffi/Cargo.toml @@ -10,11 +10,6 @@ license = "MIT OR Apache-2.0" keywords = ["deltachat", "chat", "openpgp", "email", "encryption"] categories = ["cryptography", "std", "email"] -#[profile.release] -#opt-level = 'z' # Optimize for size. -#lto = true -#codegen-units = 1 - [lib] name = "deltachat" crate-type = ["cdylib", "staticlib"]