5 license = "MIT OR Apache-2.0"
6 keywords = ["encoding", "toml"]
7 categories = ["encoding", "parser-implementations", "parsing", "config"]
9 A native Rust encoder and decoder of TOML-formatted files and streams. Provides
10 implementations of the standard Serialize/Deserialize traits for TOML data to
11 facilitate deserializing and serializing Rust structures.
13 authors = ["Alex Crichton <alex@alexcrichton.com>"]
14 repository = "https://github.com/toml-rs/toml"
15 homepage = "https://github.com/toml-rs/toml"
16 documentation = "https://docs.rs/toml"
18 rust-version = "1.60.0" # MSRV
29 [package.metadata.release]
30 pre-release-replacements = [
31 {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
32 {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
33 {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
34 {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
35 {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD", exactly=1},
38 [package.metadata.docs.rs]
39 rustdoc-args = ["--cfg", "docsrs"]
42 default = ["parse", "display"]
43 parse = ["dep:toml_edit"]
44 display = ["dep:toml_edit"]
46 # Use indexmap rather than BTreeMap as the map type of toml::Value.
47 # This allows data to be read into a Value and written back to a TOML string
48 # while preserving the order of map keys in the input.
49 preserve_order = ["indexmap"]
53 indexmap = { version = "1.9.1", optional = true }
54 toml_edit = { version = "0.19.6", path = "../toml_edit", features = ["serde"], optional = true }
55 toml_datetime = { version = "0.6.1", path = "../toml_datetime", features = ["serde"] }
56 serde_spanned = { version = "0.6.1", path = "../serde_spanned", features = ["serde"] }
59 serde = { version = "1.0.152", features = ["derive"] }
61 toml-test-harness = "0.4.3"
65 name = "decoder_compliance"
69 name = "encoder_compliance"
74 required-features = ["parse", "display"]
77 name = "enum_external"
78 required-features = ["parse", "display"]
82 required-features = ["parse", "display"]