[package]
name = "toml"
version = "0.7.8"
keywords = ["encoding", "toml"]
categories = ["encoding", "parser-implementations", "parsing", "config"]
description = """
A native Rust encoder and decoder of TOML-formatted files and streams. Provides
implementations of the standard Serialize/Deserialize traits for TOML data to
facilitate deserializing and serializing Rust structures.
"""
authors = ["Alex Crichton <alex@alexcrichton.com>"]
repository.workspace = true
homepage.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true
include.workspace = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.release]
pre-release-replacements = [
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD", exactly=1},
]
[features]
default = ["parse", "display"]
parse = ["dep:toml_edit"]
display = ["dep:toml_edit"]
preserve_order = ["indexmap"]
[dependencies]
serde = "1.0.145"
indexmap = { version = "2.0.0", optional = true }
toml_edit = { version = "0.19.15", path = "../toml_edit", features = ["serde"], optional = true }
toml_datetime = { version = "0.6.3", path = "../toml_datetime", features = ["serde"] }
serde_spanned = { version = "0.6.3", path = "../serde_spanned", features = ["serde"] }
[dev-dependencies]
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0.96"
toml-test-harness = "0.4.3"
snapbox = "0.4.11"
[[test]]
name = "decoder_compliance"
harness = false
[[test]]
name = "encoder_compliance"
harness = false
[[example]]
name = "decode"
required-features = ["parse", "display"]
[[example]]
name = "enum_external"
required-features = ["parse", "display"]
[[example]]
name = "toml2json"
required-features = ["parse", "display"]