From 4e3cdb58a75e16d3b6ca3ec5017f68c8e6e47f30 Mon Sep 17 00:00:00 2001 From: Matthew Little Date: Mon, 19 Dec 2022 17:20:58 +0100 Subject: [PATCH] ci: cargo config for smaller binary sizes (#13) --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 02ef705..6776993 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,11 +8,14 @@ resolver = "2" [profile.release] lto = true -incremental = true +strip = true +codegen-units = 1 +opt-level = "z" [profile.release-dev] inherits = "release" debug = true +incremental = true [lib] crate-type = ["lib", "cdylib"]