# 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.94.0"
name = "rumdl"
version = "0.1.68"
authors = ["Ruben J. Jongejan <ruben.jongejan@gmail.com>"]
build = false
exclude = [
    ".github/",
    ".gitignore",
    "*.bak",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast Markdown linter written in Rust (Ru(st) MarkDown Linter)"
homepage = "https://github.com/rvben/rumdl"
documentation = "https://rumdl.dev"
readme = "README.md"
keywords = [
    "markdown",
    "linter",
    "markdown-linter",
    "static-analysis",
    "documentation",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/rvben/rumdl"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
default = [
    "parallel",
    "native",
]
native = [
    "tower-lsp",
    "tokio",
    "tokio-util",
    "tower",
    "tower-service",
    "env_logger",
    "chrono",
    "notify",
    "etcetera",
    "blake3",
    "postcard",
    "colored",
    "memory-stats",
]
parallel = ["rayon"]
profiling = []
wasm = [
    "wasm-bindgen",
    "console_error_panic_hook",
    "js-sys",
    "serde-wasm-bindgen",
]

[lib]
name = "rumdl_lib"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.blake3]
version = "1.8"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true

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

[dependencies.clap_complete]
version = "4.5.65"

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

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.dyn-clone]
version = "1"

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

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

[dependencies.fancy-regex]
version = "0.17.0"

[dependencies.futures]
version = "0.3.31"
features = ["alloc"]

[dependencies.globset]
version = "0.4.18"

[dependencies.ignore]
version = "0.4.25"

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.log]
version = "0.4.29"

[dependencies.memory-stats]
version = "1.2.0"
optional = true

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

[dependencies.phf]
version = "0.13"
features = ["macros"]

[dependencies.postcard]
version = "1.1"
features = ["alloc"]
optional = true

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

[dependencies.rayon]
version = "1.11.0"
optional = true

[dependencies.regex]
version = "1.12"

[dependencies.schemars]
version = "1.1"

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

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.serde_yml]
version = "0.0.12"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48"
features = ["full"]
optional = true

[dependencies.tokio-util]
version = "0.7"
optional = true

[dependencies.toml]
version = "1.0"

[dependencies.toml_edit]
version = "0.25"

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

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

[dependencies.tower-service]
version = "0.3"
optional = true

[dependencies.unicode-normalization]
version = "0.1"

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

[dependencies.url]
version = "2"
features = ["serde"]

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

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

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

[dev-dependencies.jsonschema]
version = "0.44"

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

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

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

[dev-dependencies.serial_test]
version = "3.2"

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

[dev-dependencies.unicode-segmentation]
version = "1.12"

[dev-dependencies.ureq]
version = "3.1"

[target.'cfg(all(not(target_env = "msvc"), not(target_arch = "wasm32")))'.dependencies.tikv-jemallocator]
version = "0.6"

[target.'cfg(all(target_env = "msvc", not(target_arch = "wasm32")))'.dependencies.mimalloc]
version = "0.1"
default-features = false

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[profile.perf-test]
opt-level = 3
lto = false
codegen-units = 16
inherits = "release"

[profile.profiling]
opt-level = 3
debug = 2
inherits = "release"
strip = false

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