| 1 | [dependencies.anstyle] |
| 2 | version = "1.0.0" |
| 3 | |
| 4 | [dev-dependencies.lexopt] |
| 5 | version = "0.3.1" |
| 6 | |
| 7 | [lib] |
| 8 | name = "anstyle_wincon" |
| 9 | path = "src/lib.rs" |
| 10 | |
| 11 | [lints.clippy] |
| 12 | bool_assert_comparison = "allow" |
| 13 | branches_sharing_code = "allow" |
| 14 | checked_conversions = "warn" |
| 15 | collapsible_else_if = "allow" |
| 16 | create_dir = "warn" |
| 17 | dbg_macro = "warn" |
| 18 | debug_assert_with_mut_call = "warn" |
| 19 | doc_markdown = "warn" |
| 20 | empty_enum = "warn" |
| 21 | enum_glob_use = "warn" |
| 22 | expl_impl_clone_on_copy = "warn" |
| 23 | explicit_deref_methods = "warn" |
| 24 | explicit_into_iter_loop = "warn" |
| 25 | fallible_impl_from = "warn" |
| 26 | filter_map_next = "warn" |
| 27 | flat_map_option = "warn" |
| 28 | float_cmp_const = "warn" |
| 29 | fn_params_excessive_bools = "warn" |
| 30 | from_iter_instead_of_collect = "warn" |
| 31 | if_same_then_else = "allow" |
| 32 | implicit_clone = "warn" |
| 33 | imprecise_flops = "warn" |
| 34 | inconsistent_struct_constructor = "warn" |
| 35 | inefficient_to_string = "warn" |
| 36 | infinite_loop = "warn" |
| 37 | invalid_upcast_comparisons = "warn" |
| 38 | large_digit_groups = "warn" |
| 39 | large_stack_arrays = "warn" |
| 40 | large_types_passed_by_value = "warn" |
| 41 | let_and_return = "allow" |
| 42 | linkedlist = "warn" |
| 43 | lossy_float_literal = "warn" |
| 44 | macro_use_imports = "warn" |
| 45 | mem_forget = "warn" |
| 46 | mutex_integer = "warn" |
| 47 | needless_continue = "allow" |
| 48 | needless_for_each = "warn" |
| 49 | negative_feature_names = "warn" |
| 50 | path_buf_push_overwrite = "warn" |
| 51 | ptr_as_ptr = "warn" |
| 52 | rc_mutex = "warn" |
| 53 | redundant_feature_names = "warn" |
| 54 | ref_option_ref = "warn" |
| 55 | rest_pat_in_fully_bound_structs = "warn" |
| 56 | result_large_err = "allow" |
| 57 | same_functions_in_if_condition = "warn" |
| 58 | self_named_module_files = "warn" |
| 59 | semicolon_if_nothing_returned = "warn" |
| 60 | str_to_string = "warn" |
| 61 | string_add = "warn" |
| 62 | string_add_assign = "warn" |
| 63 | string_lit_as_bytes = "warn" |
| 64 | todo = "warn" |
| 65 | trait_duplication_in_bounds = "warn" |
| 66 | uninlined_format_args = "warn" |
| 67 | verbose_file_reads = "warn" |
| 68 | wildcard_imports = "warn" |
| 69 | zero_sized_map_values = "warn" |
| 70 | |
| 71 | [lints.rust] |
| 72 | unnameable_types = "warn" |
| 73 | unreachable_pub = "warn" |
| 74 | unsafe_op_in_unsafe_fn = "warn" |
| 75 | unused_lifetimes = "warn" |
| 76 | unused_macro_rules = "warn" |
| 77 | unused_qualifications = "warn" |
| 78 | |
| 79 | [lints.rust.rust_2018_idioms] |
| 80 | level = "warn" |
| 81 | priority = -1 |
| 82 | |
| 83 | [package] |
| 84 | autobenches = false |
| 85 | autobins = false |
| 86 | autoexamples = false |
| 87 | autolib = false |
| 88 | autotests = false |
| 89 | categories = ["command-line-interface"] |
| 90 | description = "Styling legacy Windows terminals" |
| 91 | edition = "2021" |
| 92 | include = ["build.rs", "src/**/*", "Cargo.toml", "Cargo.lock", "LICENSE*", "README.md", "examples/**/*"] |
| 93 | keywords = ["ansi", "terminal", "color", "windows"] |
| 94 | license = "MIT OR Apache-2.0" |
| 95 | name = "anstyle-wincon" |
| 96 | readme = "README.md" |
| 97 | repository = "https://github.com/rust-cli/anstyle.git" |
| 98 | rust-version = "1.66.0" |
| 99 | version = "3.0.11" |
| 100 | |
| 101 | [package.metadata.docs.rs] |
| 102 | all-features = true |
| 103 | rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] |
| 104 | targets = ["x86_64-pc-windows-msvc"] |
| 105 | |
| 106 | [[package.metadata.release.pre-release-replacements]] |
| 107 | file = "CHANGELOG.md" |
| 108 | min = 1 |
| 109 | replace = "{{version}}" |
| 110 | search = "Unreleased" |
| 111 | |
| 112 | [[package.metadata.release.pre-release-replacements]] |
| 113 | exactly = 1 |
| 114 | file = "CHANGELOG.md" |
| 115 | replace = "...{{tag_name}}" |
| 116 | search = '\.\.\.HEAD' |
| 117 | |
| 118 | [[package.metadata.release.pre-release-replacements]] |
| 119 | file = "CHANGELOG.md" |
| 120 | min = 1 |
| 121 | replace = "{{date}}" |
| 122 | search = "ReleaseDate" |
| 123 | |
| 124 | [[package.metadata.release.pre-release-replacements]] |
| 125 | exactly = 1 |
| 126 | file = "CHANGELOG.md" |
| 127 | replace = """ |
| 128 | <!-- next-header --> |
| 129 | ## [Unreleased] - ReleaseDate |
| 130 | """ |
| 131 | search = "<!-- next-header -->" |
| 132 | |
| 133 | [[package.metadata.release.pre-release-replacements]] |
| 134 | exactly = 1 |
| 135 | file = "CHANGELOG.md" |
| 136 | replace = """ |
| 137 | <!-- next-url --> |
| 138 | [Unreleased]: https://github.com/rust-cli/anstyle/compare/{{tag_name}}...HEAD""" |
| 139 | search = "<!-- next-url -->" |
| 140 | |
| 141 | [target."cfg(windows)".dependencies.once_cell_polyfill] |
| 142 | version = "1.56.1" |
| 143 | |
| 144 | [target."cfg(windows)".dependencies.windows-sys] |
| 145 | features = ["Win32_System_Console", "Win32_Foundation"] |
| 146 | version = ">=0.60.2, <0.62" |