From: Grégory Burri Date: Fri, 11 Sep 2020 11:39:10 +0000 (+0200) Subject: Move profile settings in the root Cargo.toml X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=e8c9051b408f567c67fe35872d89851c185e4768;p=rup.git Move profile settings in the root Cargo.toml --- 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::*;