From a62e96bcd9831f747248f02d238318715b0bdfe6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 28 Nov 2019 01:19:54 -0500 Subject: [PATCH] Move test profile to crate root, so it has effect again --- Cargo.toml | 4 ++++ lightning/Cargo.toml | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6ec1776c..222de893 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,7 @@ members = [ "lightning", "lightning-net-tokio", ] + +# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it +[profile.dev] +opt-level = 1 diff --git a/lightning/Cargo.toml b/lightning/Cargo.toml index 004e6d25..65d3f66e 100644 --- a/lightning/Cargo.toml +++ b/lightning/Cargo.toml @@ -33,6 +33,3 @@ features = ["bitcoinconsensus"] [dev-dependencies] hex = "0.3" rand = "0.4" - -[profile.dev] -opt-level = 1 -- 2.30.2