| 1 | [dependencies] |
| 2 | |
| 3 | [features] |
| 4 | default = [] |
| 5 | |
| 6 | [lib] |
| 7 | name = "once_cell_polyfill" |
| 8 | path = "src/lib.rs" |
| 9 | |
| 10 | [lints.clippy] |
| 11 | bool_assert_comparison = "allow" |
| 12 | branches_sharing_code = "allow" |
| 13 | checked_conversions = "warn" |
| 14 | collapsible_else_if = "allow" |
| 15 | create_dir = "warn" |
| 16 | dbg_macro = "warn" |
| 17 | debug_assert_with_mut_call = "warn" |
| 18 | doc_markdown = "warn" |
| 19 | empty_enum = "warn" |
| 20 | enum_glob_use = "warn" |
| 21 | expl_impl_clone_on_copy = "warn" |
| 22 | explicit_deref_methods = "warn" |
| 23 | explicit_into_iter_loop = "warn" |
| 24 | fallible_impl_from = "warn" |
| 25 | filter_map_next = "warn" |
| 26 | flat_map_option = "warn" |
| 27 | float_cmp_const = "warn" |
| 28 | fn_params_excessive_bools = "warn" |
| 29 | from_iter_instead_of_collect = "warn" |
| 30 | if_same_then_else = "allow" |
| 31 | implicit_clone = "warn" |
| 32 | imprecise_flops = "warn" |
| 33 | inconsistent_struct_constructor = "warn" |
| 34 | inefficient_to_string = "warn" |
| 35 | infinite_loop = "warn" |
| 36 | invalid_upcast_comparisons = "warn" |
| 37 | large_digit_groups = "warn" |
| 38 | large_stack_arrays = "warn" |
| 39 | large_types_passed_by_value = "warn" |
| 40 | let_and_return = "allow" |
| 41 | linkedlist = "warn" |
| 42 | lossy_float_literal = "warn" |
| 43 | macro_use_imports = "warn" |
| 44 | mem_forget = "warn" |
| 45 | mutex_integer = "warn" |
| 46 | needless_continue = "allow" |
| 47 | needless_for_each = "warn" |
| 48 | negative_feature_names = "warn" |
| 49 | path_buf_push_overwrite = "warn" |
| 50 | ptr_as_ptr = "warn" |
| 51 | rc_mutex = "warn" |
| 52 | redundant_feature_names = "warn" |
| 53 | ref_option_ref = "warn" |
| 54 | rest_pat_in_fully_bound_structs = "warn" |
| 55 | result_large_err = "allow" |
| 56 | same_functions_in_if_condition = "warn" |
| 57 | self_named_module_files = "warn" |
| 58 | semicolon_if_nothing_returned = "warn" |
| 59 | str_to_string = "warn" |
| 60 | string_add = "warn" |
| 61 | string_add_assign = "warn" |
| 62 | string_lit_as_bytes = "warn" |
| 63 | string_to_string = "warn" |
| 64 | todo = "warn" |
| 65 | trait_duplication_in_bounds = "warn" |
| 66 | uninlined_format_args = "warn" |
| 67 | verbose_file_reads = "warn" |
| 68 | wildcard_imports = "warn" |
| 69 | zero_sized_map_values = "warn" |
| 70 | |
| 71 | [lints.rust] |
| 72 | unnameable_types = "warn" |
| 73 | unreachable_pub = "warn" |
| 74 | unsafe_op_in_unsafe_fn = "warn" |
| 75 | unused_lifetimes = "warn" |
| 76 | unused_macro_rules = "warn" |
| 77 | unused_qualifications = "warn" |
| 78 | |
| 79 | [lints.rust.rust_2018_idioms] |
| 80 | level = "warn" |
| 81 | priority = -1 |
| 82 | |
| 83 | [package] |
| 84 | autobenches = false |
| 85 | autobins = false |
| 86 | autoexamples = false |
| 87 | autolib = false |
| 88 | autotests = false |
| 89 | categories = [] |
| 90 | description = "Polyfill for `OnceCell` stdlib feature for use with older MSRVs" |
| 91 | edition = "2021" |
| 92 | include = ["build.rs", "src/**/*", "Cargo.toml", "Cargo.lock", "LICENSE*", "README.md", "benches/**/*", "examples/**/*"] |
| 93 | keywords = [] |
| 94 | license = "MIT OR Apache-2.0" |
| 95 | name = "once_cell_polyfill" |
| 96 | readme = "README.md" |
| 97 | repository = "https://github.com/polyfill-rs/once_cell_polyfill" |
| 98 | rust-version = "1.70.0" |
| 99 | version = "1.70.2" |
| 100 | |
| 101 | [package.metadata.docs.rs] |
| 102 | all-features = true |
| 103 | |
| 104 | [[package.metadata.release.pre-release-replacements]] |
| 105 | file = "CHANGELOG.md" |
| 106 | min = 1 |
| 107 | replace = "{{version}}" |
| 108 | search = "Unreleased" |
| 109 | |
| 110 | [[package.metadata.release.pre-release-replacements]] |
| 111 | exactly = 1 |
| 112 | file = "CHANGELOG.md" |
| 113 | replace = "...{{tag_name}}" |
| 114 | search = '\.\.\.HEAD' |
| 115 | |
| 116 | [[package.metadata.release.pre-release-replacements]] |
| 117 | file = "CHANGELOG.md" |
| 118 | min = 1 |
| 119 | replace = "{{date}}" |
| 120 | search = "ReleaseDate" |
| 121 | |
| 122 | [[package.metadata.release.pre-release-replacements]] |
| 123 | exactly = 1 |
| 124 | file = "CHANGELOG.md" |
| 125 | replace = """ |
| 126 | <!-- next-header --> |
| 127 | ## [Unreleased] - ReleaseDate |
| 128 | """ |
| 129 | search = "<!-- next-header -->" |
| 130 | |
| 131 | [[package.metadata.release.pre-release-replacements]] |
| 132 | exactly = 1 |
| 133 | file = "CHANGELOG.md" |
| 134 | replace = """ |
| 135 | <!-- next-url --> |
| 136 | [Unreleased]: https://github.com/polyfill-rs/once_cell_polyfill/compare/{{tag_name}}...HEAD""" |
| 137 | search = "<!-- next-url -->" |