1 | # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
2 | # |
3 | # When uploading crates to the registry Cargo will automatically |
4 | # "normalize" Cargo.toml files for maximal compatibility |
5 | # with all versions of Cargo and also rewrite `path` dependencies |
6 | # to registry (e.g., crates.io) dependencies. |
7 | # |
8 | # If you are reading this file be aware that the original Cargo.toml |
9 | # will likely look very different (and much more reasonable). |
10 | # See Cargo.toml.orig for the original contents. |
11 | |
12 | [package] |
13 | edition = "2021" |
14 | rust-version = "1.66.0" |
15 | name = "anstyle" |
16 | version = "1.0.10" |
17 | build = false |
18 | include = [ |
19 | "build.rs" , |
20 | "src/**/*" , |
21 | "Cargo.toml" , |
22 | "Cargo.lock" , |
23 | "LICENSE*" , |
24 | "README.md" , |
25 | "benches/**/*" , |
26 | "examples/**/*" , |
27 | ] |
28 | autobins = false |
29 | autoexamples = false |
30 | autotests = false |
31 | autobenches = false |
32 | description = "ANSI text styling" |
33 | homepage = "https://github.com/rust-cli/anstyle" |
34 | readme = "README.md" |
35 | keywords = [ |
36 | "ansi" , |
37 | "terminal" , |
38 | "color" , |
39 | "no_std" , |
40 | ] |
41 | categories = ["command-line-interface" ] |
42 | license = "MIT OR Apache-2.0" |
43 | repository = "https://github.com/rust-cli/anstyle.git" |
44 | |
45 | [package.metadata.docs.rs] |
46 | all-features = true |
47 | rustdoc-args = [ |
48 | "--cfg" , |
49 | "docsrs" , |
50 | ] |
51 | |
52 | [package.metadata.release] |
53 | tag-prefix = "" |
54 | |
55 | [[package.metadata.release.pre-release-replacements]] |
56 | file = "CHANGELOG.md" |
57 | min = 1 |
58 | replace = "{{version}}" |
59 | search = "Unreleased" |
60 | |
61 | [[package.metadata.release.pre-release-replacements]] |
62 | exactly = 1 |
63 | file = "CHANGELOG.md" |
64 | replace = "...{{tag_name}}" |
65 | search = '\.\.\.HEAD' |
66 | |
67 | [[package.metadata.release.pre-release-replacements]] |
68 | file = "CHANGELOG.md" |
69 | min = 1 |
70 | replace = "{{date}}" |
71 | search = "ReleaseDate" |
72 | |
73 | [[package.metadata.release.pre-release-replacements]] |
74 | exactly = 1 |
75 | file = "CHANGELOG.md" |
76 | replace = "" " |
77 | <!-- next-header --> |
78 | ## [Unreleased] - ReleaseDate |
79 | " "" |
80 | search = "<!-- next-header -->" |
81 | |
82 | [[package.metadata.release.pre-release-replacements]] |
83 | exactly = 1 |
84 | file = "CHANGELOG.md" |
85 | replace = "" " |
86 | <!-- next-url --> |
87 | [Unreleased]: https://github.com/rust-cli/anstyle/compare/{{tag_name}}...HEAD" "" |
88 | search = "<!-- next-url -->" |
89 | |
90 | [lib] |
91 | name = "anstyle" |
92 | path = "src/lib.rs" |
93 | |
94 | [[example]] |
95 | name = "dump-style" |
96 | path = "examples/dump-style.rs" |
97 | |
98 | [dependencies] |
99 | |
100 | [dev-dependencies.lexopt] |
101 | version = "0.3.0" |
102 | |
103 | [features] |
104 | default = ["std" ] |
105 | std = [] |
106 | |
107 | [lints.clippy] |
108 | bool_assert_comparison = "allow" |
109 | branches_sharing_code = "allow" |
110 | checked_conversions = "warn" |
111 | collapsible_else_if = "allow" |
112 | create_dir = "warn" |
113 | dbg_macro = "warn" |
114 | debug_assert_with_mut_call = "warn" |
115 | doc_markdown = "warn" |
116 | empty_enum = "warn" |
117 | enum_glob_use = "warn" |
118 | expl_impl_clone_on_copy = "warn" |
119 | explicit_deref_methods = "warn" |
120 | explicit_into_iter_loop = "warn" |
121 | fallible_impl_from = "warn" |
122 | filter_map_next = "warn" |
123 | flat_map_option = "warn" |
124 | float_cmp_const = "warn" |
125 | fn_params_excessive_bools = "warn" |
126 | from_iter_instead_of_collect = "warn" |
127 | if_same_then_else = "allow" |
128 | implicit_clone = "warn" |
129 | imprecise_flops = "warn" |
130 | inconsistent_struct_constructor = "warn" |
131 | inefficient_to_string = "warn" |
132 | infinite_loop = "warn" |
133 | invalid_upcast_comparisons = "warn" |
134 | large_digit_groups = "warn" |
135 | large_stack_arrays = "warn" |
136 | large_types_passed_by_value = "warn" |
137 | let_and_return = "allow" |
138 | linkedlist = "warn" |
139 | lossy_float_literal = "warn" |
140 | macro_use_imports = "warn" |
141 | mem_forget = "warn" |
142 | mutex_integer = "warn" |
143 | needless_continue = "warn" |
144 | needless_for_each = "warn" |
145 | negative_feature_names = "warn" |
146 | path_buf_push_overwrite = "warn" |
147 | ptr_as_ptr = "warn" |
148 | rc_mutex = "warn" |
149 | redundant_feature_names = "warn" |
150 | ref_option_ref = "warn" |
151 | rest_pat_in_fully_bound_structs = "warn" |
152 | same_functions_in_if_condition = "warn" |
153 | self_named_module_files = "warn" |
154 | semicolon_if_nothing_returned = "warn" |
155 | str_to_string = "warn" |
156 | string_add = "warn" |
157 | string_add_assign = "warn" |
158 | string_lit_as_bytes = "warn" |
159 | string_to_string = "warn" |
160 | todo = "warn" |
161 | trait_duplication_in_bounds = "warn" |
162 | uninlined_format_args = "warn" |
163 | verbose_file_reads = "warn" |
164 | wildcard_imports = "warn" |
165 | zero_sized_map_values = "warn" |
166 | |
167 | [lints.rust] |
168 | unreachable_pub = "warn" |
169 | unsafe_op_in_unsafe_fn = "warn" |
170 | unused_lifetimes = "warn" |
171 | unused_macro_rules = "warn" |
172 | unused_qualifications = "warn" |
173 | |
174 | [lints.rust.rust_2018_idioms] |
175 | level = "warn" |
176 | priority = -1 |
177 | |