Make mimalloc optional for udp and http

This commit is contained in:
Joakim Frostegård 2024-05-03 22:38:25 +02:00
parent f061c47ef8
commit 7795a1a532
5 changed files with 21 additions and 5 deletions

View file

@ -44,7 +44,6 @@ hashbrown = { version = "0.14", features = ["serde"] }
httparse = "1"
indexmap = "2"
log = "0.4"
mimalloc = { version = "0.1", default-features = false, optional = true }
privdrop = "0.5"
rand = { version = "0.8", features = ["small_rng"] }
rustls = "0.23"
@ -60,6 +59,9 @@ tungstenite = "0.21"
metrics = { version = "0.22", optional = true }
metrics-util = { version = "0.16", optional = true }
# mimalloc feature
mimalloc = { version = "0.1", default-features = false, optional = true }
[dev-dependencies]
quickcheck = "1"
quickcheck_macros = "1"