From cca76dbace879977e67f44588429fa504299a396 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Tue, 23 May 2023 20:03:30 +0200 Subject: [PATCH] optimize for filesize --- Cargo.toml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b285aee..de882d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,13 @@ edition = "2021" [dependencies] bincode = "1.3.3" -serde = { version = "1.0.163", features = ["derive"] } -byteorder = "1.4.3" -sha3 = "0.10.8" -sha2 = "0.10.6" +serde = { version = "1.0.163", features = ["serde_derive"], default-features = false } +byteorder = { default-features = false, version = "1.4.3" } +sha3 = { default-features = false, version = "0.10.8" } +sha2 = { default-features = false, version = "0.10.6" } + +[profile.release] +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; remove pdb