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