Make triecache generic and work for no-std environments (#14403)
* Remove `AsLocalTrieCache` trait * Introduce new trait AsTrieDbCache * Use AsTrieDbCache trait * Make it compile * Docs * Improve naming of associated type, implement cache usage for no-std * Improve naming * Improve docs * Allow construction with optional cache * FMT * Remove unused variable * Revert unwanted change * Apply suggestions from code review Co-authored-by:Bastian Köcher <git@kchr.de> * More comment adjustments * Docs * Trigger CI * ".git/.scripts/commands/fmt/fmt.sh" * Apply suggestions from code review Co-authored-by:
Koute <koute@users.noreply.github.com> * Review comments * Review comments * Apply suggestions from code review Co-authored-by:
Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com> * fmt * Bump trie-db again --------- Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by: command-bot <> Co-authored-by:
Koute <koute@users.noreply.github.com> Co-authored-by:
Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com>
Showing
- substrate/primitives/state-machine/Cargo.toml 2 additions, 1 deletionsubstrate/primitives/state-machine/Cargo.toml
- substrate/primitives/state-machine/src/lib.rs 2 additions, 0 deletionssubstrate/primitives/state-machine/src/lib.rs
- substrate/primitives/state-machine/src/trie_backend.rs 133 additions, 46 deletionssubstrate/primitives/state-machine/src/trie_backend.rs
- substrate/primitives/state-machine/src/trie_backend_essence.rs 45 additions, 45 deletions...rate/primitives/state-machine/src/trie_backend_essence.rs
- substrate/primitives/trie/src/cache/mod.rs 1 addition, 1 deletionsubstrate/primitives/trie/src/cache/mod.rs
Please register or sign in to comment