summarylogtreecommitdiffstats
path: root/01-rocksdb.patch
blob: 115d99d3b09860987f5739c66052fa052019d287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,11 +40,13 @@ serde_json = "1.0"
 signal-hook = "0.3"
 tiny_http = { version = "0.9", optional = true }
 
-[dependencies.electrs-rocksdb]
+[dependencies.rocksdb]
 # Workaround the following issues:
 # - https://github.com/romanz/electrs/issues/403 (support building on ARM 32-bit)
 # - https://github.com/romanz/electrs/issues/469 (dynamic linking on Debian 11)
-version = "0.15.0-e2"
+#git = "https://github.com/rust-rocksdb/rust-rocksdb"
+#rev = "871c461580ea81cd92afd6819fd5b5ee2ea59641"
+version = "0.18.0"
 default-features = false
 # ZSTD is used for data compression
 # Snappy is only for checking old DB

--- a/src/db.rs
+++ b/src/db.rs
@@ -1,5 +1,5 @@
 use anyhow::{Context, Result};
-use electrs_rocksdb as rocksdb;
+use rocksdb;
 
 use std::path::Path;
 use std::sync::atomic::{AtomicBool, Ordering};