This repository was archived by the owner on Aug 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
bump(deps): update rust crate clap to 3.2 #74
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/clap-3.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for defimetachain ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
Docker image for defich/metachain is ready! Built with commit c1adae4
|
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #74 +/- ##
========================================
+ Coverage 3.96% 6.63% +2.67%
========================================
Files 10 14 +4
Lines 1766 1823 +57
Branches 0 3 +3
========================================
+ Hits 70 121 +51
- Misses 1696 1702 +6 ☔ View full report in Codecov by Sentry. |
91d8657 to
262c64c
Compare
✅ Deploy Preview for metachain ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
262c64c to
5d08280
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.1->3.2Release Notes
clap-rs/clap (clap)
v3.2.25Compare Source
[3.2.25] - 2023-04-27
Fixes
v3.2.24Compare Source
[3.2.24] - 2023-04-25
Fixes
v3.2.23Compare Source
[3.2.23] - 2022-10-24
Fixes
textwrap0.16v3.2.22Compare Source
[3.2.22] - 2022-09-16
Fixes
terminal_sizeto the 0.2 releasev3.2.21Compare Source
[3.2.21] - 2022-09-12
Features
TypedValueParser::mapto allow reusing existing value parsers for other purposesv3.2.20Compare Source
[3.2.20] - 2022-09-02
Features
ArgMatches::get_counthelp forArgAction::CountArgMatches::get_flaghelp forArgAction::SetTrue/ArgAction::SetFalsev3.2.19Compare Source
[3.2.19] - 2022-08-30
Fixes
args_conflicts_with_subcommandv3.2.18Compare Source
Fixes
Command::print_helpnow respectsCommand::colored_helpv3.2.17Compare Source
Fixes
#[clap(id = ...)]attribute to match Arg's latest APIv3.2.16Compare Source
Fixes
v3.2.15Compare Source
Features
default_values_tanddefault_values_os_tattributesv3.2.14Compare Source
Fixes
multiple_valuespositional followed by another positional now works with multiple flagsv3.2.13Compare Source
Documentation
v3.2.12Compare Source
Fixes
v3.2.11Compare Source
Features
Arg::get_all_short_aliaesandArg::get_all_aliasesv3.2.10Compare Source
Fixes
Command::mut_subcommandv3.2.8Compare Source
Features
Command::mut_subcommandto mirrorCommand::mut_argv3.2.7Compare Source
Fixes
v3.2.6Compare Source
Fixes
--=v3.2.5Compare Source
Fixes
#[clap(default_value_os_t ...)]introduced in v3.2.3v3.2.4Compare Source
Fixes
#[clap(parse)]attribute (#3832)v3.2.3Compare Source
Fixes
deprecatedCargo.toml feature (#3830)default as we release the next major version to help draw attention to the
deprecation migration path
v3.2.2Compare Source
Fixes
gated behind
unstable-v4#[clap(value_parser, action)]instead of#[clap(parse)](#3827)v3.2.1Compare Source
Fixes
Command::print_helpnow respectsCommand::colored_helpv3.2.0Compare Source
Compatibility
MSRV is now 1.56.0 (#3732)
Behavior
requiredand its variants (#3793)ArgMatches::value_ofand friends, debug asserts were turned into panicsMoving (old location deprecated)
clap::{PossibleValue, ValueHint}toclap::builder::{PossibleValue, ValueHint}clap::{Indices, OsValues, ValueSource, Values}toclap::parser::{Indices, OsValues, ValueSource, Values}clap::ArgEnumtoclap::ValueEnum(#3799)Replaced
Arg::allow_invalid_utf8withArg::value_parser(value_parser!(PathBuf))(#3753)Arg::validator/Arg::validator_oswithArg::value_parser(#3753)Arg::validator_regexwith users providing their ownbuilder::TypedValueParser(#3756)Arg::forbid_empty_valueswithbuilder::NonEmptyStringValueParser/builder::PathBufValueParser(#3753)Arg::possible_valueswithArg::value_parser([...]),builder::PossibleValuesParser, orbuilder::EnumValueParser(#3753)Arg::max_occurrenceswitharg.action(ArgAction::Count).value_parser(value_parser!(u8).range(..N))for flags (#3797)Arg::multiple_occurrenceswithArgAction::AppendorArgAction::Countthough positionals will needArg::multiple_values(#3772, #3797)Command::args_override_selfwithArgAction::Set(#2627, #3797)AppSettings::NoAutoVersionwithArgActionorCommand::disable_version_flag(#3800)AppSettings::NoHelpVersionwithArgActionorCommand::disable_help_flag/Command::disable_help_subcommand(#3800)ArgMatches::{value_of, value_of_os, value_of_os_lossy, value_of_t}withArgMatches::{get_one,remove_one}(#3753)ArgMatches::{values_of, values_of_os, values_of_os_lossy, values_of_t}withArgMatches::{get_many,remove_many}(#3753)ArgMatches::is_valid_argwithArgMatches::{try_get_one,try_get_many}(#3753)ArgMatches::occurrences_ofwithArgMatches::value_sourceorArgAction::Count(#3797)ArgMatches::is_presentwithArgMatches::contains_idorArgAction::SetTrue(#3797)ArgAction::StoreValuewithArgAction::SetorArgAction::Append(#3797)ArgAction::IncOccurrenceswithArgAction::SetTrueorArgAction::Count(#3797)#[clap(parse(...))]replaced with: (#3589, #3794)parseattribute), deprecation warnings can besilenced by opting into the new behavior by adding either
#[clap(action)]or
#[clap(value_parser)](ie requesting the default behavior for theseattributes). Alternatively, the
unstable-v4feature changes the defaultaway from
parsetoaction/value_parser.#[clap(parse(from_flag))]replaced with#[clap(action = ArgAction::SetTrue)](#3794)#[clap(parse(from_occurrences))]replaced with#[clap(action = ArgAction::Count)]though the field's type must beu8(#3794)#[clap(parse(from_os_str)]forPathBuf, replace it with#[clap(value_parser)](as mentioned earlier this will callvalue_parser!(PathBuf)which will auto-select the rightValueParserautomatically).
#[clap(parse(try_from_str = ...)], replace it with#[clap(value_parser = ...)]TypedValueParserwill be needed and specify it with#[clap(value_parser = ...)]Features
Arg::value_parser/ArgMatches::{get_one,get_many}(#2683, #3732)TypedValueParsers available with an API open for expansionvalue_parser!(T)macro for selecting a parser for a given type (#3732) and open to expansion via theValueParserFactorytrait (#3755)[&str]is implicitly a value parser for possible valuesArgMatchesgetters do not assume required arguments (#2505)ArgMatches::remove_*variants to transfer ownershipArgMatches::try_*variants to avoid panics for developer errors (#3621)get_rawto access the underlyingOsStrsPathBufvalue parsers implyValueHint::AnyPathfor completions (#3732)Arg::action(#3774)ArgAction::StoreValue: existingtakes_value(true)behaviorArgAction::IncOccurrences: existingtakes_value(false)behaviorArgAction::Help: existing--helpbehaviorArgAction::Version: existing--versionbehaviorArgAction::Set: Overwrite existing values (likeArg::multiple_occurrencesmixed withCommand::args_override_self) (#3777)ArgAction::Append: likeArg::multiple_occurrences(#3777)ArgAction::SetTrue: Treat--flagas--flag=true(#3775)Arg::default_value("false")(#3786)Arg::envviaArg::value_parserArgAction::SetFalse: Treat--flagas--flag=false(#3775)Arg::default_value("true")(#3786)Arg::envviaArg::value_parserArgAction::Count: Treat--flag --flag --flagas--flag=1 --flag=2 --flag=3(#3775)Arg::default_value("0")(#3786)Arg::envviaArg::value_parserArg::value_parser/Arg::actionwith either#[clap(value_parser)](#3589, #3742) /#[clap(action)]attributes (#3794)ValueParseris determined byvalue_parser!(#3199, #3496)ArgActionis determine by a hard-coded lookup on the type (#3794)Command::multicallis now stable for busybox-like programs and REPLs (#2861, #3684)ArgMatches::{try_,}contains_idfor checking if there are values for an argument that mirrors the newget_{one,many}APIFixes
default_value_ifs_os(#3815)parser
ArgMatches::value_sourceandArgMatches::occurrences_offor external subcommands (#3732)Arg::default_missing_values(#3761, #3765)Arg::default_value/Arg::envon value delimiters independent of whether--was used (#3765)requiredand its variants (#3793)v3.1.18Compare Source
Fixes
arg_enum!for users migrating to clap3 (#3717)required_unless_present_allarguments exist...when not enoughvalue_namesare suppliedgated behind
unstable-v4requiredis not used with conditional required settings (#3660)value_namesthannumber_of_values(#2695)""argument for external subcommands (#3263)Arg::idasverbatimcasing (#3282)v3.1.17Compare Source
Fixes
arg!macro to have dashes when quoted, like longsv3.1.16Compare Source
Fixes
Arg::exclusiveoverridesArg::required, like other conflictshelp_templatevariable{name}to fix problems with{bin}gated behind
unstable-v4Arg::longare no longer allowedCommand::display_namein the help title rather thanCommand::bin_namev3.1.15Compare Source
Fixes
v3.1.14Compare Source
Fixes
Command::buildwith a required positional argument nested several layers in subcommandsv3.1.13Compare Source
Fixes
Command::write_helpnow report required arguments in usage in more circumstancesdebugfeaturecolorfeature withdebugfeature enabledv3.1.12Compare Source
Fixes
v3.1.11Compare Source
Fixes
Arg::required, making the behavior consistent with how we calculate conflicts for error reportingArgGroupoverrideArg::required, making the behavior consistent with how we calculate conflicts for error reportingArg::overrides_withalways overrideArg::required, not just when the parser processes an overridev3.1.10Compare Source
Features
Command::buildfor custom help generation or other command introspection needsv3.1.9Compare Source
Fixes
clap_deriveversion so a compatible version is always used withclapv3.1.8Compare Source
Fixes
Debugimpls to more typesv3.1.7Compare Source
Fixes
ArgEnumwith non-unit unskipped variantsv3.1.6Compare Source
Fixes
cargofeature is neededv3.1.5Compare Source
Fixes
v3.1.4Compare Source
Features
PossibleValue::helpin long help (--help) (gated behindunstable-v4) (#3312)v3.1.3Compare Source
Fixes
v3.1.2Compare Source
Fixes
Documentation
v3.1.1Compare Source
Fixes
arg_enum!for users migrating to clap3 (#3717)required_unless_present_allarguments exist...when not enoughvalue_namesare suppliedgated behind
unstable-v4requiredis not used with conditional required settings (#3660)value_namesthannumber_of_values(#2695)""argument for external subcommands (#3263)Arg::idasverbatimcasing (#3282)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.