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

bump clap dependency to 4.x #96

Merged
merged 1 commit into from
Jul 10, 2023
Merged

bump clap dependency to 4.x #96

merged 1 commit into from
Jul 10, 2023

Conversation

dspicher
Copy link
Contributor

This gets rid of two security advisories [1, 2]
reported by cargo audit [3]. After this commit,
no other vulnerabilities are reported by the tool.

This is a heavily breaking change, as the Callback trait had to be adapted.

We prefer to keep the diff as minimal as possible, rather than strive for the maximally idiomatic code. Thus, we refrain for now from optimizations such as deriving clap::ValueEnum on
blockchain::parser::types::CoinType, or using
clap::command!() to read the crate author and
version from the Cargo manifest.

We reshuffle the argument parsing code a bit in
order to be able to add a set of unit tests that
assert some basic desired behaviors.

The updated help text is reflected in the diff of
the README file.

[1] https://rustsec.org/advisories/RUSTSEC-2021-0139

[2] https://rustsec.org/advisories/RUSTSEC-2021-0145

[3] https://crates.io/crates/cargo-audit

Closes #95.

@gcarq
Copy link
Owner

gcarq commented Jun 27, 2023

Thanks, looks very promising. I will have a closer look next week.

This gets rid of two security advisories [1, 2]
reported by `cargo audit` [3]. After this commit,
no other vulnerabilities are reported by the tool.

This is a heavily breaking change, as the `Callback`
trait had to be adapted.

We prefer to keep the diff as minimal as possible,
rather than strive for the maximally idiomatic code.
Thus, we refrain for now from optimizations such as
deriving `clap::ValueEnum` on
`blockchain::parser::types::CoinType`, or using
`clap::command!()` to read the crate author and
version from the Cargo manifest.

We reshuffle the argument parsing code a bit in
order to be able to add a set of unit tests that
assert some basic desired behaviors.

The updated help text is reflected in the diff of
the README file.

[1] https://rustsec.org/advisories/RUSTSEC-2021-0139

[2] https://rustsec.org/advisories/RUSTSEC-2021-0145

[3] https://crates.io/crates/cargo-audit
@gcarq
Copy link
Owner

gcarq commented Jul 10, 2023

LGTM, thanks a lot!

@gcarq gcarq merged commit d592c92 into gcarq:master Jul 10, 2023
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.

Outdated clap dependency
2 participants