From 23b5050811b9995bd64fe13d9c136f386b7cdfeb Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Mon, 7 Aug 2023 22:42:13 +0200 Subject: [PATCH] Enable some optimizations for the release profile --- Cargo.toml | 8 ++++++++ crates/save/Cargo.toml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index be40eb0..a574691 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,11 @@ members = [ version = "0.1.0" edition = "2021" license-file = "LICENSE" + + +[profile.release] +opt-level = 3 +codegen-units = 4 +lto = "fat" +panic = "abort" +strip = "debuginfo" diff --git a/crates/save/Cargo.toml b/crates/save/Cargo.toml index 67a46c1..1763e51 100644 --- a/crates/save/Cargo.toml +++ b/crates/save/Cargo.toml @@ -5,6 +5,10 @@ edition.workspace = true license-file.workspace = true +[lib] +crate-type = ["cdylib", "rlib"] + + [dependencies] binrw = "0.11" chrono = "0.4"