Use keccak-hasher from crates.io with nasty work-around for hashdb getting fetched twice (from local fs and crates.io)

This commit is contained in:
David Palm 2018-07-04 18:30:30 +02:00
parent a9a8d26534
commit 2738dc03c2
1 changed files with 4 additions and 2 deletions

View File

@ -8,12 +8,14 @@ license = "GPL-3.0"
[dependencies]
elastic-array = "0.10"
heapsize = "0.4"
hashdb = { version = "0.2.0", path = "../hashdb" }
# REVIEW: For tests I need to `keccak-hasher` which depends on `hashdb` but pulls `hashdb` off of crates, which means `memorydb` builds two (identical) versions of `hashdb`, one from crates.io and one in-tree. How can I force cargo to use the in-tree version even if a dependency states it wants the crates.io version?
# hashdb = { version = "0.2.0", path = "../hashdb" }
hashdb = "0.2"
plain_hasher = { path = "../plain_hasher" }
rlp = { version = "0.2.1", path = "../rlp" }
[dev-dependencies]
tiny-keccak = "1.4.2"
ethereum-types = "0.3"
# TODO: use crates.io keccak-hasher = { path = "../keccak-hasher" }
keccak-hasher = "0.1"
keccak-hash = { path = "../keccak-hash" }