From 2ee08098a6315aaab07f14c67db024ee0e95af3e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 28 Jan 2019 15:52:21 +0300 Subject: opt-in jemalloc --- crates/ra_ide_api/Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/Cargo.toml') diff --git a/crates/ra_ide_api/Cargo.toml b/crates/ra_ide_api/Cargo.toml index ad9dd2088..908899129 100644 --- a/crates/ra_ide_api/Cargo.toml +++ b/crates/ra_ide_api/Cargo.toml @@ -14,8 +14,9 @@ fst = "0.3.1" rustc-hash = "1.0" parking_lot = "0.7.0" unicase = "2.2.0" -jemallocator = "0.1.9" -jemalloc-ctl = "0.2.0" + +jemallocator = { version = "0.1.9", optional = true } +jemalloc-ctl = { version = "0.2.0", optional = true } ra_syntax = { path = "../ra_syntax" } ra_ide_api_light = { path = "../ra_ide_api_light" } @@ -26,3 +27,6 @@ test_utils = { path = "../test_utils" } [dev-dependencies] insta = "0.5.1" + +[features] +jemalloc = [ "jemallocator", "jemalloc-ctl" ] -- cgit v1.2.3