From d08beada621bc8015e75e68d8b49522740c49954 Mon Sep 17 00:00:00 2001
From: Rohan Kumar <seirdy@seirdy.one>
Date: Sat, 21 Oct 2023 21:05:10 -0700
Subject: [PATCH] Stop using default features for rocksdb

We only need zstd and snappy
---
 Cargo.lock | 11 -----------
 Cargo.toml |  2 +-
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 5904a372..04d851bb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1342,7 +1342,6 @@ dependencies = [
  "glob",
  "libc",
  "libz-sys",
- "lz4-sys",
  "pkg-config",
  "zstd-sys",
 ]
@@ -1411,16 +1410,6 @@ dependencies = [
  "linked-hash-map",
 ]
 
-[[package]]
-name = "lz4-sys"
-version = "1.9.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57d27b317e207b10f69f5e75494119e391a96f48861ae870d1da6edac98ca900"
-dependencies = [
- "cc",
- "libc",
-]
-
 [[package]]
 name = "maplit"
 version = "1.0.2"
diff --git a/Cargo.toml b/Cargo.toml
index 7baf3a15..c5eda7c2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -88,7 +88,7 @@ heed = { git = "https://github.com/timokoesters/heed.git", rev = "f6f825da7fb2c7
 # Used for ruma wrapper
 serde_html_form = "0.2.0"
 
-rocksdb = { git = "https://github.com/rust-rocksdb/rust-rocksdb", rev = "bbb3fad23a3e41ead0fbf25c39d7300a14b2be7b", default-features = true, features = ["multi-threaded-cf", "zstd", "io-uring"], optional = true }
+rocksdb = { git = "https://github.com/rust-rocksdb/rust-rocksdb", rev = "bbb3fad23a3e41ead0fbf25c39d7300a14b2be7b", default-features = false, features = ["multi-threaded-cf", "snappy", "zstd", "io-uring"], optional = true }
 
 thread_local = "1.1.7"
 # used for TURN server authentication