From 30a5f2208db0ea928b974a1950d8d410e8111f7c Mon Sep 17 00:00:00 2001 From: Ivan Kalinin Date: Fri, 3 Sep 2021 13:26:34 +0300 Subject: [PATCH 1/2] Replace jemalloc --- Cargo.toml | 2 +- librocksdb-sys/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9c8d487..d164526 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,4 +36,4 @@ trybuild = "1.0" tempfile = "3.1" pretty_assertions = "0.7" bincode = "1.3" -serde = { version = "1", features = [ "derive" ] } \ No newline at end of file +serde = { version = "1", features = [ "derive" ] } diff --git a/librocksdb-sys/Cargo.toml b/librocksdb-sys/Cargo.toml index e4d880e..734b620 100644 --- a/librocksdb-sys/Cargo.toml +++ b/librocksdb-sys/Cargo.toml @@ -13,7 +13,7 @@ links = "rocksdb" [features] default = [ "static" ] -jemalloc = ["jemalloc-sys"] +jemalloc = ["tikv-jemalloc-sys"] static = [] snappy = [] lz4 = [] @@ -23,7 +23,7 @@ bzip2 = [] [dependencies] libc = "0.2" -jemalloc-sys = { version = "0.3", features = ["unprefixed_malloc_on_supported_platforms"], optional = true } +tikv-jemalloc-sys = { version = "0.4.2+5.2.1-patched.2", features = ["unprefixed_malloc_on_supported_platforms"], optional = true } [dev-dependencies] const-cstr = "0.3" From 01023cf20dd279606a5b3ae4e4f1b8ed0a832c0f Mon Sep 17 00:00:00 2001 From: Vladimir Date: Fri, 3 Sep 2021 16:01:26 +0300 Subject: [PATCH 2/2] Remove patch version --- librocksdb-sys/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librocksdb-sys/Cargo.toml b/librocksdb-sys/Cargo.toml index 734b620..da4eb3d 100644 --- a/librocksdb-sys/Cargo.toml +++ b/librocksdb-sys/Cargo.toml @@ -23,7 +23,7 @@ bzip2 = [] [dependencies] libc = "0.2" -tikv-jemalloc-sys = { version = "0.4.2+5.2.1-patched.2", features = ["unprefixed_malloc_on_supported_platforms"], optional = true } +tikv-jemalloc-sys = { version = "0.4", features = ["unprefixed_malloc_on_supported_platforms"], optional = true } [dev-dependencies] const-cstr = "0.3"