Make RocksDB optional in client-db (#2686)

This commit is contained in:
Pierre Krieger
2019-05-28 15:12:55 +02:00
committed by André Silva
parent 902c9d03f2
commit 3a0c52f2b1
5 changed files with 32 additions and 10 deletions
+3 -4
View File
@@ -9,8 +9,8 @@ parking_lot = "0.7.1"
log = "0.4"
kvdb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
# FIXME replace with release as soon as our rocksdb changes are released upstream https://github.com/paritytech/parity-common/issues/88
kvdb-rocksdb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d", optional = true }
kvdb-rocksdb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d", optional = true }
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
lru-cache = "0.1.1"
hash-db = { version = "0.12" }
primitives = { package = "substrate-primitives", path = "../../primitives" }
@@ -24,11 +24,10 @@ trie = { package = "substrate-trie", path = "../../trie" }
consensus_common = { package = "substrate-consensus-common", path = "../../consensus/common" }
[dev-dependencies]
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
substrate-keyring = { path = "../../keyring" }
test-client = { package = "substrate-test-client", path = "../../test-client" }
env_logger = { version = "0.6" }
[features]
default = []
test-helpers = ["kvdb-memorydb"]
test-helpers = []