From 3d66cf5ade5872d503daf49bfb921fcf96592ea5 Mon Sep 17 00:00:00 2001 From: Boni Garcia Date: Wed, 12 Oct 2022 19:18:47 +0200 Subject: [PATCH] [rust] Include optimization parameters for Selenium Manager releases --- rust/Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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*