From d87938bfddc26377dd7fdf14bbcd345f3ab19442 Mon Sep 17 00:00:00 2001 From: Michael Rieder <1219037+miried@users.noreply.github.com> Date: Wed, 16 Oct 2024 09:38:51 +0200 Subject: [PATCH] Add feature `disable_cache_oblivious` to jemallocator re-exports (#104) Signed-off-by: Michael Rieder --- jemallocator/Cargo.toml | 1 + jemallocator/README.md | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/jemallocator/Cargo.toml b/jemallocator/Cargo.toml index 5093ba8..e7df83c 100644 --- a/jemallocator/Cargo.toml +++ b/jemallocator/Cargo.toml @@ -55,6 +55,7 @@ background_threads_runtime_support = ["tikv-jemalloc-sys/background_threads_runt background_threads = ["tikv-jemalloc-sys/background_threads"] unprefixed_malloc_on_supported_platforms = ["tikv-jemalloc-sys/unprefixed_malloc_on_supported_platforms"] disable_initial_exec_tls = ["tikv-jemalloc-sys/disable_initial_exec_tls"] +disable_cache_oblivious = ["tikv-jemalloc-sys/disable_cache_oblivious"] [package.metadata.docs.rs] features = [] diff --git a/jemallocator/README.md b/jemallocator/README.md index 43e00d1..207a51d 100644 --- a/jemallocator/README.md +++ b/jemallocator/README.md @@ -69,8 +69,14 @@ other targets are only tested on Rust nightly. ## Features -The `tikv-jemallocator` crate re-exports the [features of the `tikv-jemalloc-sys` -dependency](https://github.com/tikv/jemallocator/blob/master/jemalloc-sys/README.md). +This crate provides following cargo feature flags: + +* `alloc_trait` When the `alloc_trait` feature of this crate is enabled, it also implements the `Alloc` trait, allowing usage in collections. + +* `default` feature is `background_threads_runtime_support`. + +* The `tikv-jemallocator` crate re-exports the [features of the `tikv-jemalloc-sys` +dependency](https://github.com/tikv/jemallocator/blob/master/jemalloc-sys/README.md#features). ## License