diff --git a/Cargo.toml b/Cargo.toml index 3e06cb86..ac385392 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -143,3 +143,8 @@ debug = 1 # line tables only — still debuggable, much faste [profile.dev.package."*"] opt-level = 2 # compile deps faster at runtime; paid once, cached after + +[profile.release] +codegen-units = 1 +lto = "thin" +strip = true