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

chore(iota-graphql-rpc,move-vm-profiler,iota-node): Allow unexpected_cfgs and rework some macros #4831

Merged
merged 8 commits into from
Jan 22, 2025

Conversation

DaughterOfMars
Copy link
Contributor

@DaughterOfMars DaughterOfMars commented Jan 16, 2025

Description

Rust 1.84 detects an unexpected feature used via the run_query_async! macro in iota-indexer, which assumes the possibility of a mysql-feature feature. This feature does not exist in iota-graphql-rpc and thus the compiler throws a warning. This PR ignores that warning.

Additionally, the gas_profiler_feature_enabled macro uses an if cfg!(feature = "gas-profiler") check which is passed to the dependent crate and causes another warning. I have fixed this by removing that check (as it in not necessary anyway). This does cause an additional issue when using this macro to break early as it produces unreachable code warnings, so I added an additional function is_gas_profiler_feature_enabled to handle this case.

@DaughterOfMars DaughterOfMars requested a review from a team as a code owner January 16, 2025 15:19
Copy link

vercel bot commented Jan 16, 2025

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

Name Status Preview Comments Updated (UTC)
apps-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 2:36pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 2:36pm
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 2:36pm
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 2:36pm

@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels Jan 16, 2025
@DaughterOfMars DaughterOfMars requested review from a team as code owners January 16, 2025 15:59
@DaughterOfMars DaughterOfMars changed the title chore(iota-graphql-rpc): Allow unexpected_cfgs chore(iota-graphql-rpc,move-vm-profiler,iota-node): Allow unexpected_cfgs and rework some macros Jan 16, 2025
@thibault-martinez thibault-martinez merged commit da3fb8a into develop Jan 22, 2025
41 checks passed
@thibault-martinez thibault-martinez deleted the dev-tools/allow-unexpected-cfgs branch January 22, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants