diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 6523c070ed380..8b82ccf5f8a50 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -21,4 +21,11 @@ infer = "0.9.0" [dev-dependencies] assert_cmd = "2.0.4" -rstest = "0.15.0" \ No newline at end of file +rstest = "0.15.0" + +[profile.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*