| 1 | [package] |
| 2 | name = "toml" |
| 3 | version = "0.8.20" |
| 4 | keywords = ["encoding" , "toml" ] |
| 5 | categories = ["encoding" , "parser-implementations" , "parsing" , "config" ] |
| 6 | description = "" " |
| 7 | A native Rust encoder and decoder of TOML-formatted files and streams. Provides |
| 8 | implementations of the standard Serialize/Deserialize traits for TOML data to |
| 9 | facilitate deserializing and serializing Rust structures. |
| 10 | " "" |
| 11 | authors = ["Alex Crichton <alex@alexcrichton.com>" ] |
| 12 | repository.workspace = true |
| 13 | homepage.workspace = true |
| 14 | license.workspace = true |
| 15 | edition.workspace = true |
| 16 | rust-version.workspace = true |
| 17 | include.workspace = true |
| 18 | |
| 19 | [package.metadata.docs.rs] |
| 20 | all-features = true |
| 21 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 22 | |
| 23 | [package.metadata.release] |
| 24 | pre-release-replacements = [ |
| 25 | {file="CHANGELOG.md" , search="Unreleased" , replace="{{version}}" , min=1}, |
| 26 | {file="CHANGELOG.md" , search="\\.\\.\\.HEAD" , replace="...{{tag_name}}" , exactly=1}, |
| 27 | {file="CHANGELOG.md" , search="ReleaseDate" , replace="{{date}}" , min=1}, |
| 28 | {file="CHANGELOG.md" , search="<!-- next-header -->" , replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n" , exactly=1}, |
| 29 | {file="CHANGELOG.md" , search="<!-- next-url -->" , replace="<!-- next-url -->\n[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD" , exactly=1}, |
| 30 | ] |
| 31 | |
| 32 | [features] |
| 33 | default = ["parse" , "display" ] |
| 34 | parse = ["dep:toml_edit" , "toml_edit?/parse" ] |
| 35 | display = ["dep:toml_edit" , "toml_edit?/display" ] |
| 36 | |
| 37 | # Use indexmap rather than BTreeMap as the map type of toml::Value. |
| 38 | # This allows data to be read into a Value and written back to a TOML string |
| 39 | # while preserving the order of map keys in the input. |
| 40 | preserve_order = ["indexmap" ] |
| 41 | |
| 42 | [dependencies] |
| 43 | serde = "1.0.145" |
| 44 | indexmap = { version = "2.0.0" , optional = true } |
| 45 | toml_edit = { version = "0.22.23" , path = "../toml_edit" , default-features = false, features = ["serde" ], optional = true } |
| 46 | toml_datetime = { version = "0.6.8" , path = "../toml_datetime" , features = ["serde" ] } |
| 47 | serde_spanned = { version = "0.6.8" , path = "../serde_spanned" , features = ["serde" ] } |
| 48 | |
| 49 | [dev-dependencies] |
| 50 | serde = { version = "1.0.199" , features = ["derive" ] } |
| 51 | serde_json = "1.0.116" |
| 52 | toml-test-harness = "0.4.8" |
| 53 | toml-test-data = "1.11.0" |
| 54 | snapbox = "0.6.0" |
| 55 | |
| 56 | [[test]] |
| 57 | name = "decoder_compliance" |
| 58 | harness = false |
| 59 | |
| 60 | [[test]] |
| 61 | name = "encoder_compliance" |
| 62 | harness = false |
| 63 | |
| 64 | [[example]] |
| 65 | name = "decode" |
| 66 | required-features = ["parse" , "display" ] |
| 67 | |
| 68 | [[example]] |
| 69 | name = "enum_external" |
| 70 | required-features = ["parse" , "display" ] |
| 71 | |
| 72 | [[example]] |
| 73 | name = "toml2json" |
| 74 | required-features = ["parse" , "display" ] |
| 75 | |
| 76 | [lints] |
| 77 | workspace = true |
| 78 | |