optimize for size by following the first recommendations of https://github.com/johnthagen/min-sized-rust

This commit is contained in:
holger krekel
2019-12-20 17:32:42 +01:00
parent ee95e59243
commit e7db6ceea0
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -5,6 +5,11 @@ authors = ["Delta Chat Developers (ML) <delta@codespeak.net>"]
edition = "2018"
license = "MPL"
[profile.release]
opt-level = 'z' # Optimize for size.
lto = true
codegen-units = 1
[dependencies]
deltachat_derive = { path = "./deltachat_derive" }
+5
View File
@@ -10,6 +10,11 @@ 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"]