From 3ec76b63d30f149857b61044606a98c8f0dddc5d Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 2 Mar 2022 11:02:10 +0100 Subject: [PATCH] Make `dhat` optional --- crates/gpui/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index 95769cd470..46ff7e8bc5 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -8,7 +8,7 @@ version = "0.1.0" path = "src/gpui.rs" [features] -test-support = ["backtrace", "env_logger", "collections/test-support"] +test-support = ["backtrace", "dhat", "env_logger", "collections/test-support"] [dependencies] collections = { path = "../collections" } @@ -17,7 +17,7 @@ sum_tree = { path = "../sum_tree" } async-task = "4.0.3" backtrace = { version = "0.3", optional = true } ctor = "0.1" -dhat = "0.3" +dhat = { version = "0.3", optional = true } env_logger = { version = "0.8", optional = true } etagere = "0.2" futures = "0.3" @@ -51,6 +51,7 @@ cc = "1.0.67" [dev-dependencies] backtrace = "0.3" collections = { path = "../collections", features = ["test-support"] } +dhat = "0.3" env_logger = "0.8" png = "0.16" simplelog = "0.9"