| 1 | [workspace] |
| 2 | resolver = "2" |
| 3 | members = ["crates/*" ] |
| 4 | |
| 5 | [workspace.package] |
| 6 | repository = "https://github.com/rust-cli/env_logger" |
| 7 | license = "MIT OR Apache-2.0" |
| 8 | edition = "2021" |
| 9 | rust-version = "1.71" # MSRV |
| 10 | include = [ |
| 11 | "build.rs" , |
| 12 | "src/**/*" , |
| 13 | "Cargo.toml" , |
| 14 | "Cargo.lock" , |
| 15 | "LICENSE*" , |
| 16 | "README.md" , |
| 17 | "benches/**/*" , |
| 18 | "examples/**/*" , |
| 19 | "tests/**/*" , |
| 20 | ] |
| 21 | |
| 22 | [workspace.lints.rust] |
| 23 | rust_2018_idioms = { level = "warn" , priority = -1 } |
| 24 | unreachable_pub = "warn" |
| 25 | unsafe_op_in_unsafe_fn = "warn" |
| 26 | unused_lifetimes = "warn" |
| 27 | unused_macro_rules = "warn" |
| 28 | unused_qualifications = "warn" |
| 29 | |
| 30 | [workspace.lints.clippy] |
| 31 | bool_assert_comparison = "allow" |
| 32 | branches_sharing_code = "allow" |
| 33 | checked_conversions = "warn" |
| 34 | collapsible_else_if = "allow" |
| 35 | create_dir = "warn" |
| 36 | dbg_macro = "warn" |
| 37 | debug_assert_with_mut_call = "warn" |
| 38 | doc_markdown = "warn" |
| 39 | empty_enum = "warn" |
| 40 | enum_glob_use = "warn" |
| 41 | expl_impl_clone_on_copy = "warn" |
| 42 | explicit_deref_methods = "warn" |
| 43 | explicit_into_iter_loop = "warn" |
| 44 | fallible_impl_from = "warn" |
| 45 | filter_map_next = "warn" |
| 46 | flat_map_option = "warn" |
| 47 | float_cmp_const = "warn" |
| 48 | fn_params_excessive_bools = "warn" |
| 49 | from_iter_instead_of_collect = "warn" |
| 50 | if_same_then_else = "allow" |
| 51 | implicit_clone = "warn" |
| 52 | imprecise_flops = "warn" |
| 53 | inconsistent_struct_constructor = "warn" |
| 54 | inefficient_to_string = "warn" |
| 55 | infinite_loop = "warn" |
| 56 | invalid_upcast_comparisons = "warn" |
| 57 | large_digit_groups = "warn" |
| 58 | large_stack_arrays = "warn" |
| 59 | large_types_passed_by_value = "warn" |
| 60 | let_and_return = "allow" # sometimes good to name what you are returning |
| 61 | linkedlist = "warn" |
| 62 | lossy_float_literal = "warn" |
| 63 | macro_use_imports = "warn" |
| 64 | mem_forget = "warn" |
| 65 | mutex_integer = "warn" |
| 66 | needless_continue = "warn" |
| 67 | needless_for_each = "warn" |
| 68 | negative_feature_names = "warn" |
| 69 | path_buf_push_overwrite = "warn" |
| 70 | ptr_as_ptr = "warn" |
| 71 | rc_mutex = "warn" |
| 72 | redundant_feature_names = "warn" |
| 73 | ref_option_ref = "warn" |
| 74 | rest_pat_in_fully_bound_structs = "warn" |
| 75 | result_large_err = "allow" |
| 76 | same_functions_in_if_condition = "warn" |
| 77 | self_named_module_files = "warn" |
| 78 | semicolon_if_nothing_returned = "warn" |
| 79 | str_to_string = "warn" |
| 80 | string_add = "warn" |
| 81 | string_add_assign = "warn" |
| 82 | string_lit_as_bytes = "warn" |
| 83 | string_to_string = "warn" |
| 84 | todo = "warn" |
| 85 | trait_duplication_in_bounds = "warn" |
| 86 | uninlined_format_args = "warn" |
| 87 | verbose_file_reads = "warn" |
| 88 | wildcard_imports = "warn" |
| 89 | zero_sized_map_values = "warn" |
| 90 | |
| 91 | [package] |
| 92 | name = "env_logger" |
| 93 | version = "0.11.8" |
| 94 | description = "" " |
| 95 | A logging implementation for `log` which is configured via an environment |
| 96 | variable. |
| 97 | " "" |
| 98 | categories = ["development-tools::debugging" ] |
| 99 | keywords = ["logging" , "log" , "logger" ] |
| 100 | repository.workspace = true |
| 101 | license.workspace = true |
| 102 | edition.workspace = true |
| 103 | rust-version.workspace = true |
| 104 | include.workspace = true |
| 105 | |
| 106 | [package.metadata.docs.rs] |
| 107 | all-features = true |
| 108 | rustdoc-args = ["--cfg" , "docsrs" , "--generate-link-to-definition" ] |
| 109 | |
| 110 | [package.metadata.release] |
| 111 | pre-release-replacements = [ |
| 112 | {file="CHANGELOG.md" , search="Unreleased" , replace="{{version}}" , min=1}, |
| 113 | {file="CHANGELOG.md" , search="\\.\\.\\.HEAD" , replace="...{{tag_name}}" , exactly=1}, |
| 114 | {file="CHANGELOG.md" , search="ReleaseDate" , replace="{{date}}" , min=1}, |
| 115 | {file="CHANGELOG.md" , search="<!-- next-header -->" , replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n" , exactly=1}, |
| 116 | {file="CHANGELOG.md" , search="<!-- next-url -->" , replace="<!-- next-url -->\n[Unreleased]: https://github.com/rust-cli/env_logger/compare/{{tag_name}}...HEAD" , exactly=1}, |
| 117 | ] |
| 118 | |
| 119 | [features] |
| 120 | default = ["auto-color" , "humantime" , "regex" ] |
| 121 | color = ["dep:anstream" , "dep:anstyle" ] |
| 122 | auto-color = ["color" , "anstream/auto" ] |
| 123 | humantime = ["dep:jiff" ] |
| 124 | regex = ["env_filter/regex" ] |
| 125 | kv = ["log/kv" ] |
| 126 | # Deprecated |
| 127 | unstable-kv = ["kv" ] |
| 128 | |
| 129 | [dependencies] |
| 130 | log = { version = "0.4.21" , features = ["std" ] } |
| 131 | env_filter = { version = "0.1.0" , path = "crates/env_filter" , default-features = false } |
| 132 | jiff = { version = "0.2.3" , default-features = false, features = ["std" ], optional = true } |
| 133 | anstream = { version = "0.6.11" , default-features = false, features = ["wincon" ], optional = true } |
| 134 | anstyle = { version = "1.0.6" , optional = true } |
| 135 | |
| 136 | [[test]] |
| 137 | name = "regexp_filter" |
| 138 | harness = false |
| 139 | |
| 140 | [[test]] |
| 141 | name = "log-in-log" |
| 142 | harness = false |
| 143 | |
| 144 | [[test]] |
| 145 | name = "log_tls_dtors" |
| 146 | harness = false |
| 147 | |
| 148 | [[test]] |
| 149 | name = "init-twice-retains-filter" |
| 150 | harness = false |
| 151 | |
| 152 | [lints] |
| 153 | workspace = true |
| 154 | |