Switch to shiny new fast, RLP-less trie (#795)

* Bump codec

* Fix tests

* Patricia trie builds

* Introduce trie

* Some yak shaving.

* Some fixes

* Remove RLP ref

* Fixes

* It builds!

* Some tests fixed

* Another test fix

* Rejig more hashes

* substrate-trie::iterator_works test

* Update lock

* Polish

* Docs

* Undo incorrect "fix" for tests

* Fix nits
This commit is contained in:
Gav Wood
2018-09-25 15:32:22 +01:00
committed by Arkadiy Paronyan
parent b02c274374
commit 82d6ca3484
90 changed files with 1977 additions and 1129 deletions
+35
View File
@@ -0,0 +1,35 @@
[package]
name = "substrate-trie"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Patricia trie stuff using a parity-codec node format"
repository = "https://github.com/paritytech/parity-common"
license = "GPL-3.0"
[[bench]]
name = "bench"
harness = false
[dependencies]
parity-codec = { version = "~2.0.1" }
hash-db = { git = "https://github.com/paritytech/trie", default_features = false }
trie-db = { git = "https://github.com/paritytech/trie", optional = true }
trie-root = { git = "https://github.com/paritytech/trie", default_features = false }
memory-db = { git = "https://github.com/paritytech/trie", optional = true }
[dev-dependencies]
substrate-primitives = { path = "../primitives" }
trie-bench = { git = "https://github.com/paritytech/trie" }
trie-standardmap = { git = "https://github.com/paritytech/trie" }
keccak-hasher = { git = "https://github.com/paritytech/trie" }
criterion = "0.1.2"
hex-literal = "0.1.0"
[features]
default = ["std"]
std = [
"hash-db/std",
"memory-db",
"trie-db",
"trie-root/std"
]