From fc5704dd15496e0ce484a9354cb9386d7a50264f Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Sun, 7 May 2023 14:08:43 +0300 Subject: [PATCH] Cargo.toml added release profile. --- Rust/lab_1/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rust/lab_1/Cargo.toml b/Rust/lab_1/Cargo.toml index d9b48e1..5c91509 100644 --- a/Rust/lab_1/Cargo.toml +++ b/Rust/lab_1/Cargo.toml @@ -5,5 +5,12 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[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* + [dependencies] text_io = "0.1.12"