1 | [package] |
2 | name = "is_terminal_polyfill" |
3 | version = "1.70.1" |
4 | description = "Polyfill for `is_terminal` stdlib feature for use with older MSRVs" |
5 | repository = "https://github.com/polyfill-rs/is_terminal_polyfill" |
6 | categories = [] |
7 | keywords = [] |
8 | license = "MIT OR Apache-2.0" |
9 | edition = "2021" |
10 | rust-version = "1.70.0" # MSRV |
11 | include = [ |
12 | "build.rs" , |
13 | "src/**/*" , |
14 | "Cargo.toml" , |
15 | "Cargo.lock" , |
16 | "LICENSE*" , |
17 | "README.md" , |
18 | "benches/**/*" , |
19 | "examples/**/*" |
20 | ] |
21 | |
22 | [package.metadata.docs.rs] |
23 | all-features = true |
24 | rustdoc-args = ["--cfg" , "docsrs" ] |
25 | |
26 | [package.metadata.release] |
27 | pre-release-replacements = [ |
28 | {file="CHANGELOG.md" , search="Unreleased" , replace="{{version}}" , min=1}, |
29 | {file="CHANGELOG.md" , search="\\.\\.\\.HEAD" , replace="...{{tag_name}}" , exactly=1}, |
30 | {file="CHANGELOG.md" , search="ReleaseDate" , replace="{{date}}" , min=1}, |
31 | {file="CHANGELOG.md" , search="<!-- next-header -->" , replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n" , exactly=1}, |
32 | {file="CHANGELOG.md" , search="<!-- next-url -->" , replace="<!-- next-url -->\n[Unreleased]: https://github.com/polyfill-rs/is_terminal_polyfill/compare/{{tag_name}}...HEAD" , exactly=1}, |
33 | ] |
34 | |
35 | [features] |
36 | default = [] |
37 | |
38 | [dependencies] |
39 | |
40 | [lints.rust] |
41 | rust_2018_idioms = "warn" |
42 | unreachable_pub = "warn" |
43 | unsafe_op_in_unsafe_fn = "warn" |
44 | unused_lifetimes = "warn" |
45 | unused_macro_rules = "warn" |
46 | unused_qualifications = "warn" |
47 | |
48 | [lints.clippy] |
49 | bool_assert_comparison = "allow" |
50 | branches_sharing_code = "allow" |
51 | checked_conversions = "warn" |
52 | collapsible_else_if = "allow" |
53 | create_dir = "warn" |
54 | dbg_macro = "warn" |
55 | debug_assert_with_mut_call = "warn" |
56 | doc_markdown = "warn" |
57 | empty_enum = "warn" |
58 | enum_glob_use = "warn" |
59 | expl_impl_clone_on_copy = "warn" |
60 | explicit_deref_methods = "warn" |
61 | explicit_into_iter_loop = "warn" |
62 | fallible_impl_from = "warn" |
63 | filter_map_next = "warn" |
64 | flat_map_option = "warn" |
65 | float_cmp_const = "warn" |
66 | fn_params_excessive_bools = "warn" |
67 | from_iter_instead_of_collect = "warn" |
68 | if_same_then_else = "allow" |
69 | implicit_clone = "warn" |
70 | imprecise_flops = "warn" |
71 | inconsistent_struct_constructor = "warn" |
72 | inefficient_to_string = "warn" |
73 | infinite_loop = "warn" |
74 | invalid_upcast_comparisons = "warn" |
75 | large_digit_groups = "warn" |
76 | large_stack_arrays = "warn" |
77 | large_types_passed_by_value = "warn" |
78 | let_and_return = "allow" # sometimes good to name what you are returning |
79 | linkedlist = "warn" |
80 | lossy_float_literal = "warn" |
81 | macro_use_imports = "warn" |
82 | match_wildcard_for_single_variants = "warn" |
83 | mem_forget = "warn" |
84 | mutex_integer = "warn" |
85 | needless_continue = "warn" |
86 | needless_for_each = "warn" |
87 | negative_feature_names = "warn" |
88 | path_buf_push_overwrite = "warn" |
89 | ptr_as_ptr = "warn" |
90 | rc_mutex = "warn" |
91 | redundant_feature_names = "warn" |
92 | ref_option_ref = "warn" |
93 | rest_pat_in_fully_bound_structs = "warn" |
94 | same_functions_in_if_condition = "warn" |
95 | self_named_module_files = "warn" |
96 | semicolon_if_nothing_returned = "warn" |
97 | single_match_else = "warn" |
98 | str_to_string = "warn" |
99 | string_add = "warn" |
100 | string_add_assign = "warn" |
101 | string_lit_as_bytes = "warn" |
102 | string_to_string = "warn" |
103 | todo = "warn" |
104 | trait_duplication_in_bounds = "warn" |
105 | verbose_file_reads = "warn" |
106 | wildcard_imports = "warn" |
107 | zero_sized_map_values = "warn" |
108 | |