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",