Skip to content

Commit 224cac8

Browse files
committed
Make malloc dependencies optional (#285)
1 parent e075d04 commit 224cac8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ doctest = false
2020
custom_derive = "0.1"
2121
enum_derive = "0.1"
2222
libc = "0.2"
23-
jemalloc-sys = {version = "0.3.2", features = ["disable_initial_exec_tls"] }
24-
mimalloc-sys = "0.1.6"
25-
hoard-sys = "0.1.0"
23+
jemalloc-sys = {version = "0.3.2", features = ["disable_initial_exec_tls"], optional = true }
24+
mimalloc-sys = {version = "0.1.6", optional = true }
25+
hoard-sys = {version = "0.1.0", optional = true }
2626
lazy_static = "1.1"
2727
log = {version = "0.4", features = ["max_level_trace", "release_max_level_off"] }
2828
crossbeam-deque = "0.6"
@@ -76,9 +76,9 @@ side_gc_header = []
7676
# Group:malloc
7777
# only one of the following features should be enabled, or none to use the default malloc from libc
7878
# this does not replace the global Rust allocator, but provides these libraries for GC implementation
79-
malloc_mimalloc = []
80-
malloc_jemalloc = []
81-
malloc_hoard = []
79+
malloc_mimalloc = ["mimalloc-sys"]
80+
malloc_jemalloc = ["jemalloc-sys"]
81+
malloc_hoard = ["hoard-sys"]
8282

8383
# If there are more groups, they should be inserted above this line
8484
# Group:end

0 commit comments

Comments
 (0)