1[package]
2name = "toml_edit"
3version = "0.20.7"
4keywords = ["encoding", "toml"]
5categories = ["encoding", "parser-implementations", "parsing", "config"]
6description = "Yet another format-preserving TOML parser."
7authors = ["Andronik Ordian <write@reusable.software>", "Ed Page <eopage@gmail.com>"]
8repository.workspace = true
9license.workspace = true
10edition.workspace = true
11rust-version.workspace = true
12include.workspace = true
13
14[package.metadata.docs.rs]
15features = ["serde"]
16rustdoc-args = ["--cfg", "docsrs"]
17
18[package.metadata.release]
19tag-name = "v{{version}}"
20pre-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]
29default = []
30perf = ["dep:kstring"]
31serde = ["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.
37unbounded = []
38
39[dependencies]
40indexmap = { version = "2.0.0", features = ["std"] }
41winnow = "0.5.0"
42serde = { version = "1.0.145", optional = true }
43kstring = { version = "2.0.0", features = ["max_inline"], optional = true }
44toml_datetime = { version = "0.6.5", path = "../toml_datetime" }
45serde_spanned = { version = "0.6.4", path = "../serde_spanned", features = ["serde"], optional = true }
46
47[dev-dependencies]
48serde_json = "1.0.96"
49toml-test-harness = "0.4.8"
50toml-test-data = "1.4.0"
51libtest-mimic = "0.6.0"
52snapbox = { version = "0.4.11", features = ["harness"] }
53
54[[test]]
55name = "decoder_compliance"
56harness = false
57
58[[test]]
59name = "encoder_compliance"
60harness = false
61
62[[test]]
63name = "invalid"
64harness = false
65
66[[example]]
67name = "visit"
68test = true
69