| 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.14" |
| 17 |
build = false |
| 18 |
include = [ |
| 19 |
"build.rs", |
| 20 |
"src/**/*", |
| 21 |
"Cargo.toml", |
| 22 |
"Cargo.lock", |
| 23 |
"LICENSE*", |
| 24 |
"README.md", |
| 25 |
"examples/**/*", |
| 26 |
] |
| 27 |
autolib = false |
| 28 |
autobins = false |
| 29 |
autoexamples = false |
| 30 |
autotests = false |
| 31 |
autobenches = false |
| 32 |
description = "ANSI text styling" |
| 33 |
readme = "README.md" |
| 34 |
keywords = [ |
| 35 |
"ansi", |
| 36 |
"terminal", |
| 37 |
"color", |
| 38 |
"no_std", |
| 39 |
] |
| 40 |
categories = ["command-line-interface"] |
| 41 |
license = "MIT OR Apache-2.0" |
| 42 |
repository = "https://github.com/rust-cli/anstyle.git" |
| 43 |
|
| 44 |
[package.metadata.docs.rs] |
| 45 |
all-features = true |
| 46 |
rustdoc-args = ["--generate-link-to-definition"] |
| 47 |
|
| 48 |
[package.metadata.release] |
| 49 |
tag-prefix = "" |
| 50 |
|
| 51 |
[[package.metadata.release.pre-release-replacements]] |
| 52 |
file = "CHANGELOG.md" |
| 53 |
search = "Unreleased" |
| 54 |
replace = "{{version}}" |
| 55 |
min = 1 |
| 56 |
|
| 57 |
[[package.metadata.release.pre-release-replacements]] |
| 58 |
file = "CHANGELOG.md" |
| 59 |
search = '\.\.\.HEAD' |
| 60 |
replace = "...{{tag_name}}" |
| 61 |
exactly = 1 |
| 62 |
|
| 63 |
[[package.metadata.release.pre-release-replacements]] |
| 64 |
file = "CHANGELOG.md" |
| 65 |
search = "ReleaseDate" |
| 66 |
replace = "{{date}}" |
| 67 |
min = 1 |
| 68 |
|
| 69 |
[[package.metadata.release.pre-release-replacements]] |
| 70 |
file = "CHANGELOG.md" |
| 71 |
search = "<!-- next-header -->" |
| 72 |
replace = """ |
| 73 |
<!-- next-header --> |
| 74 |
## [Unreleased] - ReleaseDate |
| 75 |
""" |
| 76 |
exactly = 1 |
| 77 |
|
| 78 |
[[package.metadata.release.pre-release-replacements]] |
| 79 |
file = "CHANGELOG.md" |
| 80 |
search = "<!-- next-url -->" |
| 81 |
replace = """ |
| 82 |
<!-- next-url --> |
| 83 |
[Unreleased]: https://github.com/rust-cli/anstyle/compare/{{tag_name}}...HEAD""" |
| 84 |
exactly = 1 |
| 85 |
|
| 86 |
[features] |
| 87 |
default = ["std"] |
| 88 |
std = [] |
| 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.1" |
| 102 |
|
| 103 |
[dev-dependencies.snapbox] |
| 104 |
version = "0.6.23" |
| 105 |
|
| 106 |
[lints.clippy] |
| 107 |
bool_assert_comparison = "allow" |
| 108 |
branches_sharing_code = "allow" |
| 109 |
checked_conversions = "warn" |
| 110 |
collapsible_else_if = "allow" |
| 111 |
create_dir = "warn" |
| 112 |
dbg_macro = "warn" |
| 113 |
debug_assert_with_mut_call = "warn" |
| 114 |
doc_markdown = "warn" |
| 115 |
empty_enums = "warn" |
| 116 |
enum_glob_use = "warn" |
| 117 |
expl_impl_clone_on_copy = "warn" |
| 118 |
explicit_deref_methods = "warn" |
| 119 |
explicit_into_iter_loop = "warn" |
| 120 |
fallible_impl_from = "warn" |
| 121 |
filter_map_next = "warn" |
| 122 |
flat_map_option = "warn" |
| 123 |
float_cmp_const = "warn" |
| 124 |
fn_params_excessive_bools = "warn" |
| 125 |
from_iter_instead_of_collect = "warn" |
| 126 |
if_same_then_else = "allow" |
| 127 |
implicit_clone = "warn" |
| 128 |
imprecise_flops = "warn" |
| 129 |
inconsistent_struct_constructor = "warn" |
| 130 |
inefficient_to_string = "warn" |
| 131 |
infinite_loop = "warn" |
| 132 |
invalid_upcast_comparisons = "warn" |
| 133 |
large_digit_groups = "warn" |
| 134 |
large_stack_arrays = "warn" |
| 135 |
large_types_passed_by_value = "warn" |
| 136 |
let_and_return = "allow" |
| 137 |
linkedlist = "warn" |
| 138 |
lossy_float_literal = "warn" |
| 139 |
macro_use_imports = "warn" |
| 140 |
mem_forget = "warn" |
| 141 |
mutex_integer = "warn" |
| 142 |
needless_continue = "allow" |
| 143 |
needless_for_each = "warn" |
| 144 |
negative_feature_names = "warn" |
| 145 |
path_buf_push_overwrite = "warn" |
| 146 |
ptr_as_ptr = "warn" |
| 147 |
rc_mutex = "warn" |
| 148 |
redundant_feature_names = "warn" |
| 149 |
ref_option_ref = "warn" |
| 150 |
rest_pat_in_fully_bound_structs = "warn" |
| 151 |
result_large_err = "allow" |
| 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 |
todo = "warn" |
| 160 |
trait_duplication_in_bounds = "warn" |
| 161 |
uninlined_format_args = "warn" |
| 162 |
verbose_file_reads = "warn" |
| 163 |
wildcard_imports = "warn" |
| 164 |
zero_sized_map_values = "warn" |
| 165 |
|
| 166 |
[lints.rust] |
| 167 |
unnameable_types = "warn" |
| 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 |