From ad2e52e211f254c12e8b69208e550795434c71ff Mon Sep 17 00:00:00 2001 From: somehowchris Date: Thu, 28 Jul 2022 21:21:09 +0200 Subject: [PATCH] perf: use lto, strip and codegen profile settings for perf opt --- Cargo.toml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4a51e53..89c7daa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,13 +21,18 @@ travis-ci = { repository = "https://travis-ci.org/bootandy/dust" } name = "dust" path = "src/main.rs" +[profile.release] +codegen-units = 1 +lto = true +strip = true + [dependencies] ansi_term = "0.12" -clap = { version = "=3", features=["cargo"] } +clap = { version = "=3", features = ["cargo"] } lscolors = "0.7" terminal_size = "0.1" unicode-width = "0.1" -rayon="1" +rayon = "1" thousands = "0.2" stfu8 = "0.2" regex = "1" @@ -46,9 +51,21 @@ path = "tests/tests.rs" [package.metadata.deb] section = "utils" assets = [ - ["target/release/dust", "usr/bin/", "755"], - ["LICENSE", "usr/share/doc/du-dust/", "644"], - ["README.md", "usr/share/doc/du-dust/README", "644"], + [ + "target/release/dust", + "usr/bin/", + "755", + ], + [ + "LICENSE", + "usr/share/doc/du-dust/", + "644", + ], + [ + "README.md", + "usr/share/doc/du-dust/README", + "644", + ], ] extended-description = """\ Dust is meant to give you an instant overview of which directories are using