add stats as a default feature to avoid breakage

the stats feature was always enabled by default and never
respected if someone were to remove the stats feature as
no logic was added for setting `--disable-stats`. to avoid
breaking other user's setups who are relying on this behaviour,
set stats as a default feature.

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-28 23:35:46 -04:00
parent 9c7950e8fe
commit 9924de9da2
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ libc = { version = "^0.2.8", default-features = false }
cc = "^1.0.13"
[features]
default = ["background_threads_runtime_support"]
default = ["stats", "background_threads_runtime_support"]
profiling = []
debug = []
background_threads_runtime_support = []

View file

@ -41,7 +41,7 @@ paste = "1"
tikv-jemalloc-ctl = { path = "../jemalloc-ctl", version = "0.5.0" }
[features]
default = ["background_threads_runtime_support"]
default = ["stats", "background_threads_runtime_support"]
alloc_trait = []
profiling = ["tikv-jemalloc-sys/profiling"]
debug = ["tikv-jemalloc-sys/debug"]