Skip to content

ZKVM-1191: Refactor Clap attribute macros #3010

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Himess
Copy link
Contributor

@Himess Himess commented Mar 23, 2025

This PR updates another deprecated #[clap(...)] attribute to its modern equivalent #[command(...)], as introduced in clap 4.x.

Previously, in #2945 , I fixed all known instances of the deprecated syntax. However, while running:
cargo check --features clap/deprecated

Pasted Graphic 86

a new usage was found at rzup/src/cli/commands.rs:273, which caused a build failure due to the usage of the outdated #[clap(group(...))] syntax.

This PR ensures consistency across the codebase and avoids future breakages related to deprecated clap attributes.

Fixes #2936

@Himess Himess requested review from hmrtn and a team as code owners March 23, 2025 01:44
Copy link

vercel bot commented Mar 23, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Apr 13, 2025 10:13pm

Copy link

vercel bot commented Mar 23, 2025

@Himess is attempting to deploy a commit to the RISC Zero Team on Vercel.

A member of the Team first needs to authorize it.

@Himess Himess changed the title ZKVM-1191: Refactor Clap attribute macros from #[clap(...)] to [command(...)] ZKVM-1191: Refactor Clap attribute macros Mar 23, 2025
@Himess Himess force-pushed the fix/deprecated-clap-attribute-v2 branch from cf82ec2 to c9c7c98 Compare April 13, 2025 22:13
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.

Migrate #[clap(...)] to #[arg(...)] / #[command(...)] in clap 4.x
1 participant