From aa7c0869422f6a13d4489a6155c373b1a49b6960 Mon Sep 17 00:00:00 2001 From: Crandel Date: Wed, 28 Aug 2019 06:53:10 +0200 Subject: [PATCH] Add optimizations into release profile --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7ae61bc5fe..f5d3d17e6c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,7 +116,9 @@ path = "tests/test_crates_regex.rs" name = "crates-regex" [profile.release] -debug = true +lto = true +codegen-units = 1 +opt-level = "z" [profile.bench] debug = true