# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90"
name = "facet-toml"
version = "0.50.0-rc.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "TOML serialization for facet using the new format architecture - successor to facet-toml"
homepage = "https://facet.rs"
readme = "README.md"
keywords = [
    "toml",
    "serialization",
    "facet",
    "parsing",
]
categories = [
    "encoding",
    "parsing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/facet-rs/facet-format"

[package.metadata.docs.rs]
rustdoc-args = [
    "--html-in-header",
    "arborium-header.html",
]

[package.metadata."docs.rs"]
rustdoc-args = [
    "--html-in-header",
    "arborium-header.html",
]

[features]
axum = [
    "std",
    "serialize",
    "dep:axum-core",
    "dep:http",
    "dep:http-body-util",
]
default = []
fast = [
    "dep:zmij",
    "dep:itoa",
]
iddqd = ["facet-core/iddqd"]
net = [
    "facet-format/net",
    "facet-core/net",
]
serialize = []
std = []
tracing = [
    "facet-reflect/tracing",
    "facet-format/tracing",
]
yoke = ["facet-core/yoke"]

[lib]
name = "facet_toml"
path = "src/lib.rs"

[[example]]
name = "attr_test"
path = "examples/attr_test.rs"

[[test]]
name = "format_suite"
path = "tests/format_suite.rs"
harness = false

[[test]]
name = "main"
path = "tests/main.rs"

[[bench]]
name = "classics"
path = "benches/classics.rs"
harness = false

[dependencies.axum-core]
version = "0.5"
optional = true
default-features = false

[dependencies.facet-core]
version = "0.50.0-rc.0"
features = ["alloc"]
default-features = false

[dependencies.facet-format]
version = "0.50.0-rc.0"

[dependencies.facet-reflect]
version = "0.50.0-rc.0"
features = ["alloc"]
default-features = false

[dependencies.http]
version = "^1.4.0"
optional = true

[dependencies.http-body-util]
version = "0.1"
optional = true
default-features = false

[dependencies.itoa]
version = "1"
optional = true

[dependencies.toml_parser]
version = "1.0.4"
features = ["alloc"]
default-features = false

[dependencies.zmij]
version = "1"
optional = true

[dev-dependencies.divan]
version = "^0.1.21"

[dev-dependencies.facet]
version = "0.50.0-rc.0"
features = [
    "std",
    "std",
    "doc",
    "net",
    "iddqd",
]
default-features = false

[dev-dependencies.facet-reflect]
version = "0.50.0-rc.0"
features = [
    "alloc",
    "tracing",
]
default-features = false

[dev-dependencies.facet-testhelpers]
version = "0.50.0-rc.0"
default-features = false

[dev-dependencies.indoc]
version = "^2.0.7"

[dev-dependencies.libtest-mimic]
version = "0.8.1"

[dev-dependencies.serde]
version = "^1.0.228"
features = [
    "alloc",
    "derive",
]
default-features = false

[dev-dependencies.serde_json]
version = "^1.0.145"
features = ["alloc"]

[dev-dependencies.toml]
version = "1.0"

[lints.clippy]
disallowed_methods = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(facet_no_doc)",
    "cfg(kani)",
]
