From c6b9854c494d570bfefa4a5660ca4338bd39b7fa Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Sat, 21 Nov 2026 02:27:14 +0000 Subject: [PATCH] docs(main): Clarify mimalloc feature scope and jemalloc precedence --- src/main/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/Cargo.toml b/src/main/Cargo.toml index db155c5bd..6c403f3b6 100644 --- a/src/main/Cargo.toml +++ b/src/main/Cargo.toml @@ -112,8 +112,12 @@ jemalloc = [ "conduwuit-core/jemalloc", "conduwuit-service/jemalloc", ] +# Sets Rust's #[global_allocator] to mimalloc (C/C++ libraries such as RocksDB +# still use system libc malloc). On non-MSVC targets, `jemalloc` takes +# precedence if both are enabled, so build with `--no-default-features` and +# omit `jemalloc`/`standard` to use mimalloc. mimalloc = [ - "conduwuit-core/mimalloc" + "conduwuit-core/mimalloc", ] jemalloc_prof = [ "conduwuit-core/jemalloc_prof",