2018-07-05 04:02:40 -07:00
|
|
|
[package]
|
|
|
|
name = "patricia-trie"
|
|
|
|
version = "0.2.0"
|
|
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
description = "Merkle-Patricia Trie generic over key hasher and node encoding"
|
|
|
|
license = "GPL-3.0"
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
elastic-array = "0.10"
|
2018-07-05 08:15:03 -07:00
|
|
|
heapsize = "0.4"
|
2018-07-05 04:02:40 -07:00
|
|
|
log = "0.3"
|
|
|
|
rand = "0.4"
|
2018-07-05 05:27:22 -07:00
|
|
|
hashdb = { version = "0.2.0", path = "../hashdb" }
|
|
|
|
parity-bytes = { version = "0.1.0", path = "../parity-bytes" }
|
2018-07-05 04:02:40 -07:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
env_logger = "0.5"
|
|
|
|
ethereum-types = "0.3"
|
2018-07-05 05:27:22 -07:00
|
|
|
keccak-hash = { path = "../keccak-hash" }
|
2018-07-05 04:02:40 -07:00
|
|
|
memorydb = { version = "0.2", path = "../memorydb" }
|
|
|
|
rlp = { version = "0.2.1", path = "../rlp" }
|
|
|
|
trie-standardmap = { path = "../trie-standardmap" }
|
|
|
|
triehash = { version = "0.1.0", path = "../triehash" }
|
2018-07-05 05:27:22 -07:00
|
|
|
|
|
|
|
# REVIEW: what's a better way to deal with this? The tests here in
|
|
|
|
# `patricia_trie` use `keccak-hasher` and `patricia-trie-ethereum` to
|
|
|
|
# instantiate concrete impls. Neither crate is needed/wanted in `parity-common`
|
|
|
|
# (but we do want our tests to run…). We can publish them to crates.io (and I
|
|
|
|
# did this for `keccak-hasher`, but: see below) but `patricia-trie-ethereum`
|
|
|
|
# depends on `patricia_trie` and which will eventually be published as part of
|
|
|
|
# `parity-common` but not before that. So it's a cycle. The temporary workaround
|
|
|
|
# is to copy `patricia-trie-ethereum` into `parity-common` as a "test helper".
|
|
|
|
# Note that this is a *copy*, without any git history or link to the mother
|
|
|
|
# repo. They are to be considered test-only helpers and do not necessarily need
|
|
|
|
# to be in sync with the `parity-ethereum` versions.
|
|
|
|
patricia-trie-ethereum = { path = "../test-support/patricia-trie-ethereum" }
|
|
|
|
# We need this in-tree or we end up with duplicate versions when `keccak-hasher`
|
|
|
|
# from crates.io fetches `hashdb` from crates, which causes compiler error
|
|
|
|
# `error[E0277]: the trait bound `keccak_hasher::KeccakHasher: hashdb::Hasher`
|
|
|
|
# is not satisfied`. Not sure if there's any way around that.
|
|
|
|
keccak-hasher = { path = "../test-support/keccak-hasher" }
|