From 63c14ea4a6c697917677adf91bb4929846986257 Mon Sep 17 00:00:00 2001 From: kilic Date: Tue, 8 Dec 2020 11:10:26 +0300 Subject: [PATCH] add profile cfg --- Cargo.toml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 02b7dcc..01a8185 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,27 @@ js-sys = "0.3.37" wasm-bindgen-test = "0.3" [profile.release] -# Tell `rustc` to optimize for small code size. +opt-level = 3 +lto = "thin" +incremental = true + +# build all our deps in release mode +[profile.dev.package."*"] opt-level = 3 +[profile.bench] +opt-level = 3 +debug = false +rpath = false +lto = "thin" +incremental = true +debug-assertions = false + + +[profile.test] +opt-level = 3 +incremental = true +debug-assertions = true +debug = true + +