diff --git a/memory-db/CHANGELOG.md b/memory-db/CHANGELOG.md index 900ce4a7..7ff6ac13 100644 --- a/memory-db/CHANGELOG.md +++ b/memory-db/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog]. ## [Unreleased] +## [0.26.0] - 2021-01-27 +- Update `parity-util-mem`. + ## [0.25.0] - 2021-01-05 - Update `parity-util-mem` and `hashbrown`, removed `heapsize`. [#118](https://github.com/paritytech/trie/pull/118) diff --git a/memory-db/Cargo.toml b/memory-db/Cargo.toml index 83ed532a..99b44901 100644 --- a/memory-db/Cargo.toml +++ b/memory-db/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "memory-db" -version = "0.25.0" +version = "0.26.0" authors = ["Parity Technologies "] description = "In-memory implementation of hash-db, useful for tests" repository = "https://github.com/paritytech/trie" @@ -8,7 +8,7 @@ license = "Apache-2.0" edition = "2018" [dependencies] -parity-util-mem = { version = "0.8.0", default-features = false, features = ["hashbrown"] } +parity-util-mem = { version = "0.9.0", default-features = false, features = ["hashbrown"] } hash-db = { path = "../hash-db", default-features = false, version = "0.15.2"} hashbrown = { version = "0.9.1", default-features = false, features = [ "ahash" ] } diff --git a/test-support/reference-trie/CHANGELOG.md b/test-support/reference-trie/CHANGELOG.md index cf675876..8ab71ff0 100644 --- a/test-support/reference-trie/CHANGELOG.md +++ b/test-support/reference-trie/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog]. ## [Unreleased] +## [0.23.0] - 2021-01-27 +- Update parity-scale-codec to 2.0. + ## [0.22.0] - 2020-07-06 - Update trie-db to 0.22. [#98](https://github.com/paritytech/trie/pull/98) diff --git a/test-support/reference-trie/Cargo.toml b/test-support/reference-trie/Cargo.toml index 54a67706..84a6c7a9 100644 --- a/test-support/reference-trie/Cargo.toml +++ b/test-support/reference-trie/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reference-trie" -version = "0.22.0" +version = "0.23.0" authors = ["Parity Technologies "] description = "Simple reference trie format" repository = "https://github.com/paritytech/trie/" @@ -13,10 +13,10 @@ hash256-std-hasher = { path = "../../hash256-std-hasher", version = "0.15.2" } keccak-hasher = { path = "../keccak-hasher", version = "0.15.3" } trie-db = { path = "../../trie-db", default-features = false, version = "0.22.0" } trie-root = { path = "../../trie-root", default-features = false, version = "0.16.0" } -parity-scale-codec = { version = "1.0.3", features = ["derive"] } +parity-scale-codec = { version = "2.0.0", features = ["derive"] } [dev-dependencies] -trie-bench = { path = "../trie-bench", version = "0.26.0" } +trie-bench = { path = "../trie-bench", version = "0.27.0" } criterion = "0.3.3" [[bench]] diff --git a/test-support/reference-trie/src/lib.rs b/test-support/reference-trie/src/lib.rs index 294c74e6..37a5f914 100644 --- a/test-support/reference-trie/src/lib.rs +++ b/test-support/reference-trie/src/lib.rs @@ -383,7 +383,7 @@ enum NodeHeaderNoExt { } impl Encode for NodeHeader { - fn encode_to(&self, output: &mut T) { + fn encode_to(&self, output: &mut T) { match self { NodeHeader::Null => output.push_byte(EMPTY_TRIE), NodeHeader::Branch(true) => output.push_byte(BRANCH_NODE_WITH_VALUE), @@ -424,7 +424,7 @@ fn size_and_prefix_iterator(size: usize, prefix: u8) -> impl Iterator first_byte.chain(::std::iter::from_fn(next_bytes)) } -fn encode_size_and_prefix(size: usize, prefix: u8, out: &mut impl Output) { +fn encode_size_and_prefix(size: usize, prefix: u8, out: &mut (impl Output + ?Sized)) { for b in size_and_prefix_iterator(size, prefix) { out.push_byte(b) } @@ -447,7 +447,7 @@ fn decode_size(first: u8, input: &mut I) -> Result } impl Encode for NodeHeaderNoExt { - fn encode_to(&self, output: &mut T) { + fn encode_to(&self, output: &mut T) { match self { NodeHeaderNoExt::Null => output.push_byte(EMPTY_TRIE_NO_EXT), NodeHeaderNoExt::Branch(true, nibble_count) => diff --git a/test-support/trie-bench/CHANGELOG.md b/test-support/trie-bench/CHANGELOG.md index 32ba004a..acd228d4 100644 --- a/test-support/trie-bench/CHANGELOG.md +++ b/test-support/trie-bench/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog]. ## [Unreleased] +## [0.27.0] - 2021-01-27 +- Update memory-db to 0.26. +- Update parity-scale-codec to 2.0. + ## [0.26.0] - 2021-01-05 - Update memory-db to 0.25. [#118](https://github.com/paritytech/trie/pull/118) diff --git a/test-support/trie-bench/Cargo.toml b/test-support/trie-bench/Cargo.toml index ffcd600d..7266380b 100644 --- a/test-support/trie-bench/Cargo.toml +++ b/test-support/trie-bench/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "trie-bench" description = "Standard benchmarking suite for tries" -version = "0.26.0" +version = "0.27.0" authors = ["Parity Technologies "] repository = "https://github.com/paritytech/trie/" license = "Apache-2.0" @@ -11,8 +11,8 @@ edition = "2018" keccak-hasher = { path = "../keccak-hasher", version = "0.15.2" } trie-standardmap = { path = "../trie-standardmap", version = "0.15.2" } hash-db = { path = "../../hash-db" , version = "0.15.2"} -memory-db = { path = "../../memory-db", version = "0.25.0" } +memory-db = { path = "../../memory-db", version = "0.26.0" } trie-root = { path = "../../trie-root", version = "0.16.0" } trie-db = { path = "../../trie-db", version = "0.22.0" } criterion = "0.3.3" -parity-scale-codec = { version = "1.0.3" } +parity-scale-codec = { version = "2.0.0" } diff --git a/trie-db/test/Cargo.toml b/trie-db/test/Cargo.toml index cd5b542d..00301870 100644 --- a/trie-db/test/Cargo.toml +++ b/trie-db/test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trie-db-test" -version = "0.22.1" +version = "0.23.0" authors = ["Parity Technologies "] description = "Tests for trie-db crate" repository = "https://github.com/paritytech/trie" @@ -15,12 +15,12 @@ harness = false trie-db = { path = "..", version = "0.22.1"} hash-db = { path = "../../hash-db", version = "0.15.2"} rustc-hex = { version = "2.1.0" } -memory-db = { path = "../../memory-db", version = "0.25.0" } +memory-db = { path = "../../memory-db", version = "0.26.0" } rand = { version = "0.8", default-features = false, features = ["small_rng"] } trie-root = { path = "../../trie-root", version = "0.16.0"} trie-standardmap = { path = "../../test-support/trie-standardmap", version = "0.15.2" } keccak-hasher = { path = "../../test-support/keccak-hasher", version = "0.15.2" } -reference-trie = { path = "../../test-support/reference-trie", version = "0.22.0" } +reference-trie = { path = "../../test-support/reference-trie", version = "0.23.0" } hex-literal = "0.3" criterion = "0.3" env_logger = "0.8" diff --git a/trie-root/test/Cargo.toml b/trie-root/test/Cargo.toml index 18976e81..21f806d8 100644 --- a/trie-root/test/Cargo.toml +++ b/trie-root/test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trie-root-test" -version = "0.16.0" +version = "0.17.0" authors = ["Parity Technologies "] description = "Tests fo trie-root crate" repository = "https://github.com/paritytech/trie" @@ -14,4 +14,4 @@ hash-db = { path = "../../hash-db", version = "0.15.2" } hex-literal = "0.3" keccak-hasher = { path = "../../test-support/keccak-hasher", version = "0.15.2" } trie-standardmap = { path = "../../test-support/trie-standardmap", version = "0.15.2" } -reference-trie = { path = "../../test-support/reference-trie", version = "0.22.0" } +reference-trie = { path = "../../test-support/reference-trie", version = "0.23.0" }