diff --git a/Cargo.toml b/Cargo.toml index feec40c..5f6e7b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,10 +24,12 @@ branch = "next" [lints.clippy] incompatible_msrv = "forbid" +[profile.release] +lto = true # Enable link-time optimization +codegen-units = 1 # Reduce number of codegen units to increase optimizations + [profile.size-optimized] inherits = "release" opt-level = 'z' # Optimize for size -lto = true # Enable link-time optimization -codegen-units = 1 # Reduce number of codegen units to increase optimizations panic = 'abort' # Abort on panic strip = true # Strip symbols from binary