-
Notifications
You must be signed in to change notification settings - Fork 1.7k
separate trie from util and make its dependencies into libs #6478
separate trie from util and make its dependencies into libs #6478
Conversation
0545fc8
to
007ba1b
Compare
Finally, all the errors are resolved! And it is ready for review. I will work on the left tasks of #6418 after this PR is merged since they depend on the changes made by this PR. |
could you rename the trie package to |
util/trie/Cargo.toml
Outdated
rlp = { path = "../rlp" } | ||
nibbleslice = { path = "../nibbleslice" } | ||
nibblevec = { path = "../nibblevec" } | ||
triehash = { path = "../triehash" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe triehash
should go in the same crate, within an "ephemeral" module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I guess we can make it a separated PR if all of we agree to move it to this crate.
@rphmeier Sure, WDYT? @gavofyork @debris @tomusdrw @NikVolf |
@Hawstein This could use a merge |
ed42732
to
3fe5b36
Compare
@rphmeier Rebase master and rename trie. Could you review it if you have time? Since it touches lots of files, it will easily have conflicts with other new PRs. |
3fe5b36
to
7fd6eb2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just not 100% sure if nibblevec
and nibbleslice
need to be standalone libraries. Apart from that, lgtm.
* bytes * hashdb * memorydb * nibbleslice * nibblevec
31d711b
to
dd7a60c
Compare
Just rebased master. This can be merged without conflicts now. |
Part of #6418
Separate trie from util and make its dependencies into libs: