Make `dhat` optional

Antonio Scandurra created

Change summary

crates/gpui/Cargo.toml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Detailed changes

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"