Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cleanup][move] Remove unused cargo deps + minor removal of some more unused things #17762

Merged
merged 1 commit into from
May 21, 2024

Conversation

tzakian
Copy link
Contributor

@tzakian tzakian commented May 15, 2024

Description

Ran cargo udeps to find unused Cargo dependencies and removed them, and then also found some unused private types, and removed those as well.

Test plan

CI

@tzakian tzakian requested a review from a team May 15, 2024 21:06
Copy link

vercel bot commented May 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2024 6:26pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview May 20, 2024 6:26pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview May 20, 2024 6:26pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview May 20, 2024 6:26pm

@@ -9,7 +9,6 @@ edition = "2021"

[dependencies]
move-binary-format.workspace = true
move-bytecode-verifier-meter.workspace = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is interesting -- perhaps indicative of a bigger issue?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite the name of the crate... the v2 version of move-abstract-interpreter does not contain the abstract interpreter lol. It is still in the move-bytecode-verifier crate. So this should be fine.

Why? Because this crate only exists in v2 because it is trying to pin a version of the CFG which was split out from the binary format into this versioned crate recently. The alternative was to do a lot of code moving/rewriting in the v* crates, which seemed undesirable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So had a bit of a poke around, and it looks fine -- the main thing is the move-abstract-interpreter in non-v2 has a number of other trait abstractions in absint.rs that this v2 crate does not have (e.g., trait AbstractDomain, trait TransferFunctions, trait AbstractInterpreter etc.). It's those abstractions which utilize the verifier meter in their type signatures.

@tzakian tzakian force-pushed the tzakian/spring-cleaning-2 branch from 754ff74 to 3f06eb2 Compare May 20, 2024 18:25
@tzakian tzakian merged commit 463ed66 into main May 21, 2024
48 checks passed
@tzakian tzakian deleted the tzakian/spring-cleaning-2 branch May 21, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants