1 | [package] |
2 | name = "toml_edit" |
3 | version = "0.20.7" |
4 | keywords = ["encoding" , "toml" ] |
5 | categories = ["encoding" , "parser-implementations" , "parsing" , "config" ] |
6 | description = "Yet another format-preserving TOML parser." |
7 | authors = ["Andronik Ordian <write@reusable.software>" , "Ed Page <eopage@gmail.com>" ] |
8 | repository.workspace = true |
9 | license.workspace = true |
10 | edition.workspace = true |
11 | rust-version.workspace = true |
12 | include.workspace = true |
13 | |
14 | [package.metadata.docs.rs] |
15 | features = ["serde" ] |
16 | rustdoc-args = ["--cfg" , "docsrs" ] |
17 | |
18 | [package.metadata.release] |
19 | tag-name = "v{{version}}" |
20 | pre-release-replacements = [ |
21 | {file="CHANGELOG.md" , search="Unreleased" , replace="{{version}}" , min=1}, |
22 | {file="CHANGELOG.md" , search="\\.\\.\\.HEAD" , replace="...{{tag_name}}" , exactly=1}, |
23 | {file="CHANGELOG.md" , search="ReleaseDate" , replace="{{date}}" , min=1}, |
24 | {file="CHANGELOG.md" , search="<!-- next-header -->" , replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n" , exactly=1}, |
25 | {file="CHANGELOG.md" , search="<!-- next-url -->" , replace="<!-- next-url -->\n[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD" , exactly=1}, |
26 | ] |
27 | |
28 | [features] |
29 | default = [] |
30 | perf = ["dep:kstring" ] |
31 | serde = ["dep:serde" , "toml_datetime/serde" , "dep:serde_spanned" ] |
32 | # Provide a method disable_recursion_limit to parse arbitrarily deep structures |
33 | # without any consideration for overflowing the stack. Additionally you will |
34 | # need to be careful around other recursive operations on the parsed result |
35 | # which may overflow the stack after deserialization has completed, including, |
36 | # but not limited to, Display and Debug and Drop impls. |
37 | unbounded = [] |
38 | |
39 | [dependencies] |
40 | indexmap = { version = "2.0.0" , features = ["std" ] } |
41 | winnow = "0.5.0" |
42 | serde = { version = "1.0.145" , optional = true } |
43 | kstring = { version = "2.0.0" , features = ["max_inline" ], optional = true } |
44 | toml_datetime = { version = "0.6.5" , path = "../toml_datetime" } |
45 | serde_spanned = { version = "0.6.4" , path = "../serde_spanned" , features = ["serde" ], optional = true } |
46 | |
47 | [dev-dependencies] |
48 | serde_json = "1.0.96" |
49 | toml-test-harness = "0.4.8" |
50 | toml-test-data = "1.4.0" |
51 | libtest-mimic = "0.6.0" |
52 | snapbox = { version = "0.4.11" , features = ["harness" ] } |
53 | |
54 | [[test]] |
55 | name = "decoder_compliance" |
56 | harness = false |
57 | |
58 | [[test]] |
59 | name = "encoder_compliance" |
60 | harness = false |
61 | |
62 | [[test]] |
63 | name = "invalid" |
64 | harness = false |
65 | |
66 | [[example]] |
67 | name = "visit" |
68 | test = true |
69 | |