feat: allow disabling jemalloc via feature

This commit is contained in:
Timo Kösters 2022-02-04 16:59:30 +01:00
parent f35ad27627
commit 8d8edddb2e
No known key found for this signature in database
GPG key ID: 356E705610F626D5
2 changed files with 6 additions and 6 deletions

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;