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