From 3e776764952e5b83177ea79fd8e8d5eee6f30033 Mon Sep 17 00:00:00 2001 From: Inga Date: Tue, 14 Nov 2023 02:03:00 +0000 Subject: [PATCH] reduce release binary size --- hostnames_allocator/Cargo.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hostnames_allocator/Cargo.toml b/hostnames_allocator/Cargo.toml index 7686d19..5acb79a 100644 --- a/hostnames_allocator/Cargo.toml +++ b/hostnames_allocator/Cargo.toml @@ -5,9 +5,19 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +lto = true +codegen-units = 1 +opt-level = "s" +strip = true + [dependencies] lazy_static = "1.4.0" -regex = "1.10.2" + +[dependencies.regex] +version = "1.10.2" +default-features = false +features = ["std"] [dev-dependencies] itertools = "0.11.0"