From 55db7dce5cd8cbc310ec38ce1852cc70688f107d Mon Sep 17 00:00:00 2001 From: NA Date: Fri, 26 Jan 2024 21:52:49 +0000 Subject: [PATCH] Updated release settings in cargo,toml --- .gitignore | 1 + Cargo.toml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index ea8c4bf..cfb0e48 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +/release \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 857c866..ff9f121 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,13 @@ 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 = 'unwind' # unwind on panic. +strip = true # Strip symbols from binary. Gives significant space reductions + [lib] name = "royal_road_archiver_lib" path = "src/library.rs"