sui
sui copied to clipboard
[sui-execution] Move `sui` execution crates into their own directory
Description
Create the sub-directory containing the "latest" version of sui-
crates in the execution layer. API to access multiple versions of an execution crate to follow. This commit just moves code to its new home, to minimise the chance for a merge conflict.
Test Plan
$ cargo simtest
$ env SUI_SKIP_SIMTESTS=1 cargo nextest run
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Addressing some potential review comments up-front:
- Originally,
sui-execution
was withincrates
but this triggered a linter warning thatcrates
needs to have a flat directory structure. - It's useful to have all the execution crates from the same version in the same directory (e.g.
sui-execution/latest
) rather than flatten them out, because then they can refer to each other by relative paths, and when we cut a new version, we don't need to touch this part.
I see what we are doing... this is so much more clear that the simple contrived example you pointed me to :D thanks
@dariorussi, versioning for the move crates and the sui-execution
versioned crate that the TODOs refer to are to come in a follow-up PR, because they are also pretty big changes on their own. The TODOs are meant to be here as a reminder to me for where I need to change references to the "latest" version of the execution crate to point to the crate that dispatches by version.