# 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.88"
name = "mdbook-lint"
version = "0.11.3"
authors = ["Josh Rotenberg <joshrotenberg@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast markdown linter for mdBook"
readme = "README.md"
keywords = [
    "markdown",
    "linter",
    "mdbook",
    "documentation",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/joshrotenberg/mdbook-lint"
resolver = "2"

[features]
default = ["lsp"]
lsp = [
    "tower-lsp",
    "tokio",
]

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

[[bin]]
name = "debug_preprocessor"
path = "src/bin/debug_preprocessor.rs"

[[bin]]
name = "mdbook-lint"
path = "src/main.rs"

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.comrak]
version = "0.21"

[dependencies.mdbook]
version = "0.4"
default-features = false

[dependencies.mdbook-lint-core]
version = "0.11.3"

[dependencies.mdbook-lint-rulesets]
version = "0.11.3"

[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.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
    "io-util",
    "io-std",
    "net",
    "time",
]
optional = true

[dependencies.toml]
version = "0.5"

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

[dependencies.walkdir]
version = "2.3"

[dev-dependencies.assert_cmd]
version = "2.0"

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

[dev-dependencies.predicates]
version = "3.0"

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

[dev-dependencies.walkdir]
version = "2.3"

[dev-dependencies.which]
version = "4.0"
