diff --git a/kvdb-rocksdb/CHANGELOG.md b/kvdb-rocksdb/CHANGELOG.md index 5a96342e..8cb6ee9a 100644 --- a/kvdb-rocksdb/CHANGELOG.md +++ b/kvdb-rocksdb/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog]. ## [Unreleased] +## [0.20.2] - 2025-11-17 +- Make snappy and jemalloc configurable features [#950](https://github.com/paritytech/parity-common/pull/950) + ## [0.20.1] - 2025-11-07 - Force compact the DB on startup and on heavy writes. [#949](https://github.com/paritytech/parity-common/pull/949) diff --git a/kvdb-rocksdb/Cargo.toml b/kvdb-rocksdb/Cargo.toml index 3d8040ce..d4f64708 100644 --- a/kvdb-rocksdb/Cargo.toml +++ b/kvdb-rocksdb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kvdb-rocksdb" -version = "0.20.1" +version = "0.20.2" description = "kvdb implementation backed by RocksDB" rust-version = "1.71.1" authors.workspace = true @@ -18,14 +18,7 @@ kvdb = { workspace = true } num_cpus = { workspace = true } parking_lot = { workspace = true } regex = { workspace = true } - -# OpenBSD and MSVC are unteested and shouldn't enable jemalloc: -# https://github.com/tikv/jemallocator/blob/52de4257fab3e770f73d5174c12a095b49572fba/jemalloc-sys/build.rs#L26-L27 -[target.'cfg(any(target_os = "openbsd", target_env = "msvc"))'.dependencies] -rocksdb = { workspace = true, features = ["snappy"] } - -[target.'cfg(not(any(target_os = "openbsd", target_env = "msvc")))'.dependencies] -rocksdb = { workspace = true, features = ["snappy", "jemalloc"] } +rocksdb = { workspace = true, default-features = false, features = ["snappy"] } [dev-dependencies] alloc_counter = { workspace = true } @@ -38,3 +31,7 @@ keccak-hash = { workspace = true } sysinfo = { workspace = true } ctrlc = { workspace = true } chrono = { workspace = true } + +[features] +default = [] +jemalloc = ["rocksdb/jemalloc"] \ No newline at end of file