From e8c9051b408f567c67fe35872d89851c185e4768 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9gory=20Burri?= Date: Fri, 11 Sep 2020 13:39:10 +0200 Subject: [PATCH] Move profile settings in the root Cargo.toml --- backend/Cargo.toml | 5 ----- common/Cargo.toml | 6 ++++++ common/src/lib.rs | 4 +++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 27b8ad6..257e2e7 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -34,8 +34,3 @@ features = ["bundled"] [dependencies.askama] version = "0.9" features = ["with-actix-web"] - -[profile.release] -codegen-units = 1 -lto = true -panic = 'abort' diff --git a/common/Cargo.toml b/common/Cargo.toml index 2c31465..cf6ec79 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -6,3 +6,9 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] + + +[profile.release] +codegen-units = 1 +lto = true +panic = 'abort' diff --git a/common/src/lib.rs b/common/src/lib.rs index d257341..5112279 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -1,5 +1,7 @@ - +fn f(a: i32, b: i32) -> i32 { + a + 2 * b +} mod tests { use super::*; -- 2.43.0