Skip to content

Conversation

@JacobHayes
Copy link

Summary

  • Upgrades clap from 2.33.3 to 4.x to address vulnerabilities in transitive dependencies (e.g. atty)
  • Migrates CLI code to the clap 4 API (AppCommand, Arg::with_nameArg::new, .value_of().get_one::<String>(), etc.)
  • No functional changes to CLI behavior

Test plan

  • cargo check passes
  • Manual smoke test: cargo run -- --input <img> --output <out.svg> produces equivalent output

clap 2.33.3 depends on atty, which is unmaintained and has a
soundness issue. clap 4.x removes this dependency.

Migrates the CLI to the clap 4 API:
- App -> Command
- Arg::with_name -> Arg::new
- .short("x") -> .short('x')
- .takes_value(true) removed (now the default)
- .value_of() -> .get_one::<String>()
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.

1 participant