Make dhat optional

This commit is contained in:
Antonio Scandurra 2022-03-02 11:02:10 +01:00
parent 51345cf1e1
commit 3ec76b63d3

View File

@ -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"