Skip to content

Commit b9343bc

Browse files
xDimonbkchr
andauthored
kvdb-rocksdb: Make snappy and jemalloc configurable features (#950)
* support of `x-shadow` feature * remove `x-shadow` feature * bump version and update changelog * changelog fixup * Apply suggestion from @bkchr --------- Co-authored-by: Bastian Köcher <[email protected]>
1 parent 9ecd9bd commit b9343bc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

kvdb-rocksdb/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog].
66

77
## [Unreleased]
88

9+
## [0.20.2] - 2025-11-17
10+
- Make snappy and jemalloc configurable features [#950](https://github.com/paritytech/parity-common/pull/950)
11+
912
## [0.20.1] - 2025-11-07
1013
- Force compact the DB on startup and on heavy writes. [#949](https://github.com/paritytech/parity-common/pull/949)
1114

kvdb-rocksdb/Cargo.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kvdb-rocksdb"
3-
version = "0.20.1"
3+
version = "0.20.2"
44
description = "kvdb implementation backed by RocksDB"
55
rust-version = "1.71.1"
66
authors.workspace = true
@@ -18,14 +18,7 @@ kvdb = { workspace = true }
1818
num_cpus = { workspace = true }
1919
parking_lot = { workspace = true }
2020
regex = { workspace = true }
21-
22-
# OpenBSD and MSVC are unteested and shouldn't enable jemalloc:
23-
# https://github.com/tikv/jemallocator/blob/52de4257fab3e770f73d5174c12a095b49572fba/jemalloc-sys/build.rs#L26-L27
24-
[target.'cfg(any(target_os = "openbsd", target_env = "msvc"))'.dependencies]
25-
rocksdb = { workspace = true, features = ["snappy"] }
26-
27-
[target.'cfg(not(any(target_os = "openbsd", target_env = "msvc")))'.dependencies]
28-
rocksdb = { workspace = true, features = ["snappy", "jemalloc"] }
21+
rocksdb = { workspace = true, default-features = false, features = ["snappy"] }
2922

3023
[dev-dependencies]
3124
alloc_counter = { workspace = true }
@@ -38,3 +31,7 @@ keccak-hash = { workspace = true }
3831
sysinfo = { workspace = true }
3932
ctrlc = { workspace = true }
4033
chrono = { workspace = true }
34+
35+
[features]
36+
default = []
37+
jemalloc = ["rocksdb/jemalloc"]

0 commit comments

Comments
 (0)