PackageTrack
Sign in Get early access

trie-db

Merkle-Patricia Trie generic over key hasher and node encoding

0.32.0 14M downloads/mo #2591 most downloaded on crates.io paritytech/trie

What this package is like to depend on

Last release 4 days ago

19 Aug 2026

Release timing varies

gaps range from 9 days to 10 months

Some releases are documented

notes for 22 of 42 stable releases

4 versions withdrawn

withdrawn after publishing

8 years old

46 releases · first in 2019

6 releases in the last 12 months

see the full history below

Release timeline

46 releases · Jan 2019 to Aug 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 46
  1. 0.32.0 19 Aug 2026
    Release notes
    • Fix the item count returned by decode_compact/decode_compact_from_iter when the last decoded node carries an attached (detached-at-encoding) value: the value item was not counted, so continuing to decode concatenated encodings at the returned offset re-read the value as a node. #227
    • Add encode_compact_skip_duplicates, emitting each distinct item in a compact proof — trie node or detached value node — only once instead of once per referencing position. Deduplicated encodings reconstruct a readable hash-keyed database with any decoder, including already released ones; decoding them into position-keyed (prefixed) databases, or relying on reconstructed reference counts, is unsupported — a proof is a record of state accesses, not a database to mutate (polkadot-sdk#12565). #233
    Open source →
  2. 0.31.0 08 Dec 2025
    Release notes
    • explicit commit on drop

    • doc updated

    • trie-db: version bumped

    • review: docs

    • version bump

    • bool flag: commit_on_drop

    • tests added

    • fmt

    • fixes

    • versions bumped

    Open source →
  3. 0.30.1 25 May 2026

    Nothing published for this version

  4. 0.30.0 07 Mar 2025
    Release notes
    • Improve TrieCache size by reducing size_of NodeOwned #216
    Open source →
  5. 0.29.2 25 May 2026

    Nothing published for this version

  6. 0.29.1 14 May 2024
    Release notes
    • Fix backward iterator seek #215
    Open source →
  7. 0.29.0 03 Apr 2024
    Release notes
    • Implements DoubleEndedIterator for trie iterator #208
    Open source →
  8. 0.28.1 25 May 2026

    Nothing published for this version

  9. 0.28.0 12 Sep 2023
    Release notes
    • Make trie_nodes_recorded_for_key work for inline values #194
    • trie-db: Fetch the closest merkle value #199
    • fixing triedbmut lookup, added some testing in test. #198
    Open source →
  10. 0.27.2 25 May 2026

    Nothing published for this version

  11. 0.27.1 17 Mar 2023
    Release notes
    • Fix TrieDBRawIterator::prefix_then_seek #190
    Open source →
  12. 0.27.0 14 Mar 2023
    Release notes
    • Fix compact proof to skip including value node hashes #187
    • Update dependencies. #188
    Open source →
  13. 0.26.0 24 Feb 2023
    Release notes
    • TrieDBRawIterator and TrieDBNodeIterator now return a node inside of an Arc instead of Rc #185
    • TrieDBRawIterator is now Send and Sync #185
    Open source →
  14. 0.25.1 14 Feb 2023
    Release notes
    • Fix recorder behavior: #184
    Open source →
  15. 0.25.0 03 Feb 2023
    Release notes
    • Updated hashbrown to 0.13.2: #177
    • Iterator refactoring: #181
      • Removed TrieDBKeyIterator::suspend and SuspendedTrieDBKeyIterator
      • Added TrieDBRawIterator
    Open source →
  16. 0.24.0 04 Aug 2022
    Release notes
    • Do not check for root in TrieDB and TrieDBMut constructors: #155

      To get back the old behavior you have to add the following code:

      if !db.contains(root, EMPTY_PREFIX) {
        return Err(InvalidStateRoot(root))
      }
      
    • Introduce trie level cache & recorder: #157

      This pull requests introduced a cache that is directly baked into the trie-db. This cache can be used to speed up accessing data in the trie. Alongside the cache, the recorder was also made a first class citizen of the trie. The pull requests introduces quite a lot of changes to the trie api. TrieDB and TrieDBMut are now for example now using a builder pattern. For more information see the pr.

    Open source →
  17. 0.23.1 04 Feb 2022
    Release notes
    • Updated hashbrown to 0.12. #150
    Open source →
  18. 0.23.0 19 Oct 2021
    Release notes
    • Support for value nodes. #142
    Open source →
  19. 0.22.6 02 Jul 2021
    Release notes
    • Updated hashbrown to 0.11. #131
    Open source →
  20. 0.22.5 26 May 2021

    Nothing published for this version

  21. 0.22.4 26 May 2021

    Nothing published for this version

  22. 0.22.3 28 Jan 2021
    Release notes

    Added

    • Decode with an iterator. #121
    Open source →
  23. 0.22.2 05 Jan 2021
    Release notes
    • Update hashbrown to 0.9. #118
    Open source →
  24. 0.22.1 24 Jul 2020
    Release notes
    • Use ahash feature of hashbrown. #103
    Open source →
  25. 0.22.0 06 Jul 2020
    Release notes
    • Update hashbrown to 0.8. #97
    Open source →
  26. 0.21.1 06 Jul 2020 withdrawn

    Nothing published for this version

  27. 0.21.0 05 Jun 2020
    Release notes
    • Added ALLOW_EMPTY to TrieLayout. #92
    Open source →
  28. 0.20.1 14 Apr 2020

    Nothing published for this version

  29. 0.20.0 07 Feb 2020
    Release notes
    • Prefix iterator. #39
    • Update trie-root to v0.16.0 and memory-db to v0.19.0 and reference-trie to v0.20.0 #78
    Open source →
  30. 0.19.2 16 Jan 2020
    Release notes
    • Compact proofs support. #45
    Open source →
  31. 0.19.1 15 Jan 2020 withdrawn

    Nothing published for this version

  32. 0.19.0 15 Jan 2020 withdrawn

    Nothing published for this version

  33. 0.18.1 02 Jan 2020

    Nothing published for this version

  34. 0.18.0 19 Dec 2019

    Nothing published for this version

  35. 0.16.0 19 Nov 2019

    Nothing published for this version

  36. 0.15.2 19 Aug 2019

    Nothing published for this version

  37. 0.15.0 01 Aug 2019

    Nothing published for this version

  38. 0.14.0 04 Jul 2019

    Nothing published for this version

  39. 0.12.4 18 Jun 2019

    Nothing published for this version

  40. 0.12.3 12 Jun 2019 withdrawn

    Nothing published for this version

  41. 0.12.2 29 Mar 2019

    Nothing published for this version

  42. 0.12.1 28 Mar 2019

    Nothing published for this version

  43. 0.12.0 27 Mar 2019

    Nothing published for this version

  44. 0.11.0 06 Feb 2019

    Nothing published for this version

  45. 0.9.1 23 Jan 2019

    Nothing published for this version

  46. 0.9.0 22 Jan 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive