# 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.93"
name = "mkdlint"
version = "0.11.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A style checker and lint tool for Markdown/CommonMark files, written in Rust."
readme = "README.md"
keywords = [
    "markdown",
    "lint",
    "commonmark",
    "linter",
    "checker",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "text-processing",
]
license = "Apache-2.0"
repository = "https://github.com/192d-Wing/mkdlint"

[features]
async = ["dep:tokio"]
cli = [
    "dep:clap",
    "dep:colored",
    "dep:walkdir",
    "dep:globset",
    "dep:dialoguer",
    "dep:notify",
    "dep:notify-debouncer-full",
]
default = ["cli"]
lsp = [
    "async",
    "dep:tower-lsp",
    "dep:lsp-types",
    "dep:tower",
    "dep:url",
    "dep:env_logger",
]

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

[[bin]]
name = "mkdlint"
path = "src/main.rs"
required-features = ["cli"]

[[bin]]
name = "mkdlint-lsp"
path = "src/bin/mkdlint-lsp.rs"
required-features = ["lsp"]

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "cargo",
]
optional = true

[dependencies.colored]
version = "3.1"
optional = true

[dependencies.comrak]
version = "0.50"
features = ["syntect"]
default-features = false

[dependencies.dashmap]
version = "6.1"

[dependencies.dialoguer]
version = "0.11"
optional = true

[dependencies.env_logger]
version = "0.11"
optional = true

[dependencies.globset]
version = "0.4"
optional = true

[dependencies.lsp-types]
version = "0.94"
optional = true

[dependencies.notify]
version = "6.1"
optional = true

[dependencies.notify-debouncer-full]
version = "0.3"
optional = true

[dependencies.once_cell]
version = "1.20"

[dependencies.rayon]
version = "1.10"

[dependencies.regex]
version = "1.11"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml_ng]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.41"
features = [
    "rt-multi-thread",
    "fs",
    "io-util",
    "sync",
    "time",
    "io-std",
    "macros",
]
optional = true

[dependencies.toml]
version = "1.0"

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tower-lsp]
version = "0.20"
optional = true

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

[dependencies.url]
version = "2.5"
optional = true

[dependencies.walkdir]
version = "2.5"
optional = true

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

[dev-dependencies.insta]
version = "1.41"

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

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

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

[dev-dependencies.tokio]
version = "1.41"
features = [
    "rt",
    "macros",
    "fs",
]

[profile.bench]
inherits = "release"

[profile.dev.package."*"]
opt-level = 2

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
