# 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"
name = "anyrepair"
version = "0.2.1"
authors = ["Ying Kit WONG"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A comprehensive Rust crate for repairing malformed structured data including JSON, YAML, XML, TOML, CSV, INI, Markdown, and Diff with format auto-detection"
homepage = "https://github.com/yingkitw/anyrepair"
documentation = "https://docs.rs/anyrepair"
readme = "README.md"
keywords = [
    "repair",
    "json",
    "yaml",
    "parser",
    "mcp",
]
categories = [
    "text-processing",
    "parser-implementations",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/yingkitw/anyrepair"

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

[[bin]]
name = "anyrepair"
path = "src/main.rs"

[[bin]]
name = "anyrepair-mcp"
path = "src/bin/mcp_server.rs"

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.4"
features = ["derive"]

[dependencies.csv]
version = "1.3"

[dependencies.ini]
version = "1.3"

[dependencies.pulldown-cmark]
version = "0.10"

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

[dependencies.regex]
version = "1.10"

[dependencies.rmcp]
version = "0.14"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "1.0"

[dependencies.toml]
version = "0.8"

[dev-dependencies.arbitrary]
version = "1.4"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.tempfile]
version = "3.25"

[profile.dist]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
inherits = "release"
strip = true

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
