• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14rust-version = "1.65"
15name = "toml_edit"
16version = "0.22.20"
17authors = [
18    "Andronik Ordian <write@reusable.software>",
19    "Ed Page <eopage@gmail.com>",
20]
21build = false
22include = [
23    "build.rs",
24    "src/**/*",
25    "Cargo.toml",
26    "Cargo.lock",
27    "LICENSE*",
28    "README.md",
29    "benches/**/*",
30    "examples/**/*",
31    "tests/**/*",
32]
33autobins = false
34autoexamples = false
35autotests = false
36autobenches = false
37description = "Yet another format-preserving TOML parser."
38readme = "README.md"
39keywords = [
40    "encoding",
41    "toml",
42]
43categories = [
44    "encoding",
45    "parser-implementations",
46    "parsing",
47    "config",
48]
49license = "MIT OR Apache-2.0"
50repository = "https://github.com/toml-rs/toml"
51
52[package.metadata.docs.rs]
53features = ["serde"]
54rustdoc-args = [
55    "--cfg",
56    "docsrs",
57]
58
59[package.metadata.release]
60tag-name = "v{{version}}"
61
62[[package.metadata.release.pre-release-replacements]]
63file = "CHANGELOG.md"
64min = 1
65replace = "{{version}}"
66search = "Unreleased"
67
68[[package.metadata.release.pre-release-replacements]]
69exactly = 1
70file = "CHANGELOG.md"
71replace = "...{{tag_name}}"
72search = '\.\.\.HEAD'
73
74[[package.metadata.release.pre-release-replacements]]
75file = "CHANGELOG.md"
76min = 1
77replace = "{{date}}"
78search = "ReleaseDate"
79
80[[package.metadata.release.pre-release-replacements]]
81exactly = 1
82file = "CHANGELOG.md"
83replace = """
84<!-- next-header -->
85## [Unreleased] - ReleaseDate
86"""
87search = "<!-- next-header -->"
88
89[[package.metadata.release.pre-release-replacements]]
90exactly = 1
91file = "CHANGELOG.md"
92replace = """
93<!-- next-url -->
94[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD"""
95search = "<!-- next-url -->"
96
97[lib]
98name = "toml_edit"
99path = "src/lib.rs"
100
101[[example]]
102name = "visit"
103path = "examples/visit.rs"
104test = true
105required-features = [
106    "parse",
107    "display",
108]
109
110[[test]]
111name = "decoder_compliance"
112path = "tests/decoder_compliance.rs"
113harness = false
114required-features = ["parse"]
115
116[[test]]
117name = "encoder_compliance"
118path = "tests/encoder_compliance.rs"
119harness = false
120required-features = [
121    "parse",
122    "display",
123]
124
125[[test]]
126name = "invalid"
127path = "tests/invalid.rs"
128harness = false
129required-features = [
130    "parse",
131    "display",
132]
133
134[[test]]
135name = "testsuite"
136path = "tests/testsuite/main.rs"
137required-features = [
138    "parse",
139    "display",
140]
141
142[dependencies.indexmap]
143version = "2.0.0"
144features = ["std"]
145
146[dependencies.kstring]
147version = "2.0.0"
148features = ["max_inline"]
149optional = true
150
151[dependencies.serde]
152version = "1.0.145"
153optional = true
154
155[dependencies.serde_spanned]
156version = "0.6.7"
157features = ["serde"]
158optional = true
159
160[dependencies.toml_datetime]
161version = "0.6.8"
162
163[dependencies.winnow]
164version = "0.6.18"
165optional = true
166
167[dev-dependencies.libtest-mimic]
168version = "0.7.2"
169
170[dev-dependencies.proptest]
171version = "1.5.0"
172
173[dev-dependencies.serde_json]
174version = "1.0.116"
175
176[dev-dependencies.snapbox]
177version = "0.6.0"
178
179[dev-dependencies.toml-test-data]
180version = "1.11.0"
181
182[dev-dependencies.toml-test-harness]
183version = "0.4.8"
184
185[features]
186default = [
187    "parse",
188    "display",
189]
190display = []
191parse = ["dep:winnow"]
192perf = ["dep:kstring"]
193serde = [
194    "dep:serde",
195    "toml_datetime/serde",
196    "dep:serde_spanned",
197]
198unbounded = []
199
200[lints.clippy]
201bool_assert_comparison = "allow"
202branches_sharing_code = "allow"
203checked_conversions = "warn"
204collapsible_else_if = "allow"
205create_dir = "warn"
206dbg_macro = "warn"
207debug_assert_with_mut_call = "warn"
208doc_markdown = "warn"
209empty_enum = "warn"
210enum_glob_use = "warn"
211expl_impl_clone_on_copy = "warn"
212explicit_deref_methods = "warn"
213explicit_into_iter_loop = "warn"
214fallible_impl_from = "warn"
215filter_map_next = "warn"
216flat_map_option = "warn"
217float_cmp_const = "warn"
218fn_params_excessive_bools = "warn"
219from_iter_instead_of_collect = "warn"
220if_same_then_else = "allow"
221implicit_clone = "warn"
222imprecise_flops = "warn"
223inconsistent_struct_constructor = "warn"
224inefficient_to_string = "warn"
225infinite_loop = "warn"
226invalid_upcast_comparisons = "warn"
227large_digit_groups = "warn"
228large_stack_arrays = "warn"
229large_types_passed_by_value = "warn"
230let_and_return = "allow"
231linkedlist = "warn"
232lossy_float_literal = "warn"
233macro_use_imports = "warn"
234mem_forget = "warn"
235mutex_integer = "warn"
236needless_continue = "warn"
237needless_for_each = "warn"
238negative_feature_names = "warn"
239path_buf_push_overwrite = "warn"
240ptr_as_ptr = "warn"
241rc_mutex = "warn"
242redundant_feature_names = "warn"
243ref_option_ref = "warn"
244rest_pat_in_fully_bound_structs = "warn"
245same_functions_in_if_condition = "warn"
246self_named_module_files = "warn"
247semicolon_if_nothing_returned = "warn"
248str_to_string = "warn"
249string_add = "warn"
250string_add_assign = "warn"
251string_lit_as_bytes = "warn"
252string_to_string = "warn"
253todo = "warn"
254trait_duplication_in_bounds = "warn"
255verbose_file_reads = "warn"
256wildcard_imports = "warn"
257zero_sized_map_values = "warn"
258
259[lints.rust]
260unreachable_pub = "warn"
261unsafe_op_in_unsafe_fn = "warn"
262unused_lifetimes = "warn"
263unused_macro_rules = "warn"
264unused_qualifications = "warn"
265
266[lints.rust.rust_2018_idioms]
267level = "warn"
268priority = -1
269