Skip to content

Commit

Permalink
rocksdb 0.22 via a patch
Browse files Browse the repository at this point in the history
patch is removeable once paritytech/parity-common#828
is merged and released.
  • Loading branch information
kayabaNerve committed Feb 18, 2024
1 parent df85c09 commit c05c511
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 19 deletions.
37 changes: 19 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "2"
members = [
# Version patches
"patches/zstd",
"patches/rocksdb",
"patches/proc-macro-crate",

# std patches
Expand Down Expand Up @@ -112,6 +113,8 @@ dockertest = { git = "https://github.com/kayabaNerve/dockertest-rs", branch = "a

# wasmtime pulls in an old version for this
zstd = { path = "patches/zstd" }
# substrate pulls in an old version for this
rocksdb = { path = "patches/rocksdb" }
# proc-macro-crate 2 binds to an old version of toml for msrv so we patch to 3
proc-macro-crate = { path = "patches/proc-macro-crate" }

Expand Down
2 changes: 1 addition & 1 deletion common/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ workspace = true

[dependencies]
parity-db = { version = "0.4", default-features = false, optional = true }
rocksdb = { version = "0.21", default-features = false, features = ["lz4"], optional = true }
rocksdb = { version = "0.22", default-features = false, features = ["lz4"], optional = true }

[features]
parity-db = ["dep:parity-db"]
Expand Down
21 changes: 21 additions & 0 deletions patches/rocksdb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "rocksdb"
version = "0.21.0"
description = "rocksdb which patches to the latest update"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/patches/rocksdb"
authors = ["Luke Parker <[email protected]>"]
keywords = []
edition = "2021"
rust-version = "1.63"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
rocksdb = "0.22"

[features]
jemalloc = ["rocksdb/jemalloc"]
snappy = ["rocksdb/snappy"]
1 change: 1 addition & 0 deletions patches/rocksdb/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub use rocksdb::*;

0 comments on commit c05c511

Please sign in to comment.