mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
7515bfeb51
This adds a new `Cargo.toml` feature named `deprecated` that opts controls whether deprecation warnings show up. This is starting off as non-default though that may change (see below). Benefits - Allows a staged rollout so a smaller subset of users see new deprecations and can report their experience with them before everyone sees them. For example, this reduces the number of people who have to deal with #3822. - This allows people to defer responding to each new batch of deprecations and instead do it at once. This means we should reconsider #3616. The one risk is people who don't follow blog posts and guides having a harder time upgrading to the next breaking release without the warnings on by default. For these users, we reserve the right to make the `deprecated` feature `default`. This is most likely to happen in a minor release that is released in conjunction with the next major release (e.g. when releasing 4.0.0, we release a 3.3.0 that enables deprecations by default). By using a feature, users can still disable this if they want. Thanks @joshtriplett for the idea |
||
---|---|---|
.. | ||
next | ||
stable | ||
clap_empty_attr.rs | ||
clap_empty_attr.stderr | ||
default_value_t_invalid.rs | ||
default_value_t_invalid.stderr | ||
default_value_wo_value_removed.rs | ||
default_value_wo_value_removed.stderr | ||
enum_flatten.rs | ||
enum_flatten.stderr | ||
enum_variant_not_args.rs | ||
enum_variant_not_args.stderr | ||
external_subcommand_misuse.rs | ||
external_subcommand_misuse.stderr | ||
external_subcommand_wrong_type.rs | ||
external_subcommand_wrong_type.stderr | ||
flatten_and_methods.rs | ||
flatten_and_methods.stderr | ||
flatten_and_parse.rs | ||
flatten_and_parse.stderr | ||
flatten_enum_in_struct.rs | ||
flatten_enum_in_struct.stderr | ||
flatten_struct_in_enum.rs | ||
flatten_struct_in_enum.stderr | ||
multiple_external_subcommand.rs | ||
multiple_external_subcommand.stderr | ||
opt_opt_nonpositional.rs | ||
opt_opt_nonpositional.stderr | ||
opt_vec_nonpositional.rs | ||
opt_vec_nonpositional.stderr | ||
option_default_value.rs | ||
option_default_value.stderr | ||
parse_empty_try_from_os.rs | ||
parse_empty_try_from_os.stderr | ||
parse_function_is_not_path.rs | ||
parse_function_is_not_path.stderr | ||
parse_literal_spec.rs | ||
parse_literal_spec.stderr | ||
parse_not_zero_args.rs | ||
parse_not_zero_args.stderr | ||
parse_with_value_parser.rs | ||
parse_with_value_parser.stderr | ||
raw.rs | ||
raw.stderr | ||
rename_all_wrong_casing.rs | ||
rename_all_wrong_casing.stderr | ||
skip_flatten.rs | ||
skip_flatten.stderr | ||
skip_subcommand.rs | ||
skip_subcommand.stderr | ||
skip_with_other_options.rs | ||
skip_with_other_options.stderr | ||
skip_without_default.rs | ||
skip_without_default.stderr | ||
struct_parse.rs | ||
struct_parse.stderr | ||
struct_subcommand.rs | ||
struct_subcommand.stderr | ||
subcommand_and_flatten.rs | ||
subcommand_and_flatten.stderr | ||
subcommand_and_methods.rs | ||
subcommand_and_methods.stderr | ||
subcommand_and_parse.rs | ||
subcommand_and_parse.stderr | ||
subcommand_on_struct.rs | ||
subcommand_on_struct.stderr | ||
subcommand_opt_opt.rs | ||
subcommand_opt_opt.stderr | ||
subcommand_opt_vec.rs | ||
subcommand_opt_vec.stderr | ||
unsupported_parser.rs | ||
unsupported_parser.stderr | ||
value_enum_non_unit.rs | ||
value_enum_non_unit.stderr | ||
value_enum_on_struct.rs | ||
value_enum_on_struct.stderr |