feat: allow disabling jemalloc via feature

This commit is contained in:
Timo Kösters committed 2022-02-04 17:00:46 +01:00
1 parent f35ad27627
commit 8d8edddb2e
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -26,10 +26,10 @@ use tracing_subscriber::{prelude::*, EnvFilter};
pub use conduit::*; // Re-export everything from the library crate
pub use rocket::State;
#[cfg(not(target_env = "msvc"))]
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
use tikv_jemallocator::Jemalloc;
#[cfg(not(target_env = "msvc"))]
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;