fix: Use mimalloc for c/c++ code by default

This commit is contained in:
Jade Ellis committed 2026-11-21 14:54:10 +00:00
1 parent 5bb55a1285
commit 8e54ea0853
4 files changed
+6 -11

No files matched your search

+2
View File
@@ -9,6 +9,8 @@ pub(crate) use je::metric;
pub use je::{memory_stats, memory_usage, memory_usage_stats, trim};
// mimalloc
#[cfg(all(feature = "mimalloc", feature = "jemalloc", not(target_env = "msvc")))]
compile_error!("the `mimalloc` and `jemalloc` features are mutually exclusive");
#[cfg(all(feature = "mimalloc", any(target_env = "msvc", not(feature = "jemalloc"))))]
pub mod mimalloc;
#[cfg(all(feature = "mimalloc", any(target_env = "msvc", not(feature = "jemalloc"))))]