# 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 = "2021"
name = "katana-markdown-linter"
version = "0.18.4"
build = "build.rs"
include = [
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "Markfile",
    "build.rs",
    "server.json",
    "docs/**",
    "examples/**",
    "mcpb/**",
    "schema/**",
    "upstream_docs/**",
    "src/**",
    "tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "markdownlint-compatible Markdown linter library"
readme = "README.md"
keywords = [
    "markdown",
    "lint",
    "markdownlint",
    "kml",
]
categories = [
    "development-tools",
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/HiroyukiFuruno/katana-markdown-linter"

[features]
cli = []
default = []
jsonc = []
mcp = [
    "dep:rmcp",
    "dep:tokio",
]
mcp-remote = [
    "mcp",
    "dep:axum",
    "dep:tracing-subscriber",
    "rmcp/transport-streamable-http-server",
    "tokio/net",
    "tokio/time",
]

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

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

[[bin]]
name = "kml-mcp"
path = "src/bin/kml-mcp.rs"
required-features = ["mcp"]

[[bin]]
name = "kml-mcp-remote"
path = "src/bin/kml-mcp-remote.rs"
required-features = ["mcp-remote"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8"
features = [
    "http1",
    "tokio",
]
optional = true
default-features = false

[dependencies.glob]
version = "0.3"

[dependencies.ignore]
version = "0.4"

[dependencies.regex]
version = "1"

[dependencies.rmcp]
version = "1.6.0"
features = [
    "macros",
    "server",
    "transport-io",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]
optional = true

[dependencies.unicode-width]
version = "0.2"
