# 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.89.0"
name = "facet-xml"
version = "0.32.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "XML serialization and deserialization for Facet types"
readme = "README.md"
keywords = [
    "xml",
    "serialization",
    "deserialization",
    "reflection",
    "facet",
]
categories = [
    "encoding",
    "parsing",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/facet-rs/facet"

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

[features]
alloc = [
    "facet-core/alloc",
    "facet-reflect/alloc",
]
axum = [
    "std",
    "dep:axum-core",
    "dep:http",
    "dep:http-body-util",
]
ci = []
default = ["std"]
diff = [
    "dep:facet-diff-core",
    "dep:owo-colors",
]
std = [
    "alloc",
    "facet-core/std",
    "facet-reflect/std",
]

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

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.facet]
version = "0.32.1"
default-features = false

[dependencies.facet-core]
version = "0.32.1"
default-features = false

[dependencies.facet-diff-core]
version = "0.32.1"
optional = true

[dependencies.facet-reflect]
version = "0.32.1"
features = ["miette"]
default-features = false

[dependencies.facet-solver]
version = "0.32.1"

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

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

[dependencies.log]
version = "0.4"

[dependencies.miette]
version = "7"
default-features = false

[dependencies.owo-colors]
version = "4"
optional = true

[dependencies.quick-xml]
version = "0.38"

[dev-dependencies.cargo-husky]
version = "1.5.0"
features = ["user-hooks"]
default-features = false

[dev-dependencies.indoc]
version = "2"

[dev-dependencies.miette]
version = "7"
default-features = false
