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