From 0602d668bc1f804795692f4b185db74aa4235af6 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Sun, 29 Jan 2023 23:49:49 +0200 Subject: [PATCH] optimize release build --- Cargo.toml | 7 ++++++- README.md | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/Cargo.toml b/Cargo.toml index b995acc..7459105 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,12 @@ name = "ktu-timetable" version = "0.1.0" 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] egui = "0.20.1" diff --git a/README.md b/README.md new file mode 100644 index 0000000..623077c --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# KTU Timetable +