From d877809b74b58d877ee634a38fff9909689949c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos?= Date: Sat, 25 Nov 2023 12:59:28 -0300 Subject: [PATCH] Strip symbols of inferno binaries to decrease size by 24x (#310) --- CHANGELOG.md | 2 ++ Cargo.toml | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9149f823..adb14d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- By default, make `cargo install` strip all binaries. [#310](https://github.com/jonhoo/inferno/pull/310) + ### Removed ## [0.11.18] - 2023-11-11 diff --git a/Cargo.toml b/Cargo.toml index 16c73b25..bb983cf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,10 @@ license = "CDDL-1.0" exclude = ["/tests/**", "/flamegraph/**", "/*.perf"] +[profile.release] +strip = true # To use flamegraph on inferno binaries, comment this line +# debug = true # and uncomment this line. + [features] default = ["cli", "multithreaded", "nameattr"] cli = ["clap", "env_logger"] @@ -65,9 +69,6 @@ regex = { version = "1.6", default-features = false, features = ["std"] } serde = { version = "1.0.145" } testing_logger = "0.1.1" -[profile.release] -debug = true - [lib] name = "inferno" path = "src/lib.rs"