Skip to content

Commit 274ec9d

Browse files
committed
Fix incorrect mimaloc config in Cargo.toml
1 parent 46729a5 commit 274ec9d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ bytes = "1"
4040
bincode = "1"
4141
rmp-serde = "1"
4242
md5 = "0.8"
43-
mimalloc = { version = "0.1", default-features = false }
4443

45-
[features]
46-
default = []
47-
# Use mimalloc for musl builds (musl's malloc is very slow)
48-
musl = []
44+
# Use mimalloc for musl builds (musl's default malloc is very slow).
45+
[target.'cfg(target_env = "musl")'.dependencies]
46+
mimalloc = { version = "0.1", default-features = false }
4947

5048
[profile.release]
5149
strip = true

0 commit comments

Comments
 (0)