# 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 = "panache"
version = "2.14.1"
authors = ["Johan Larsson <johan@jolars.co>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An LSP, formatter, and linter for Pandoc markdown, Quarto, and RMarkdown"
homepage = "https://jolars.github.io/panache"
readme = "README.md"
keywords = [
    "quarto",
    "pandoc",
    "markdown",
    "formatter",
    "language-server",
]
categories = [
    "command-line-utilities",
    "text-processing",
    "parsing",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/jolars/panache"

[package.metadata.deb]
maintainer = "Johan Larsson <johan@jolars.co>"
copyright = "2026, Johan Larsson <johan@jolars.co>"
license-file = [
    "LICENSE",
    "4",
]
extended-description = "A CLI formatter for Quarto, Pandoc, and Markdown files. Supports Quarto-specific syntax like fenced divs, tables, and math formatting that other formatters struggle with. Provides intelligent line wrapping, consistent formatting, and an integrated language server for editor support."
depends = "$auto"
section = "text"
priority = "optional"
assets = [
    [
    "target/release/panache",
    "usr/bin/",
    "755",
],
    [
    "README.md",
    "usr/share/doc/panache/",
    "644",
],
    [
    "LICENSE",
    "usr/share/doc/panache/",
    "644",
],
    [
    "target/man/*.1",
    "usr/share/man/man1/",
    "644",
],
    [
    "target/completions/panache.bash",
    "usr/share/bash-completion/completions/panache",
    "644",
],
    [
    "target/completions/panache.fish",
    "usr/share/fish/vendor_completions.d/panache.fish",
    "644",
],
    [
    "target/completions/_panache",
    "usr/share/zsh/vendor-completions/_panache",
    "644",
],
]

[[package.metadata.generate-rpm.assets]]
source = "target/release/panache"
dest = "/usr/bin/panache"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "README.md"
dest = "/usr/share/doc/panache/README.md"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "LICENSE"
dest = "/usr/share/doc/panache/LICENSE"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "target/man/*.1"
dest = "/usr/share/man/man1/"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/completions/panache.bash"
dest = "/usr/share/bash-completion/completions/panache"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/completions/panache.fish"
dest = "/usr/share/fish/vendor_completions.d/panache.fish"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "target/completions/_panache"
dest = "/usr/share/zsh/vendor-completions/_panache"
mode = "644"

[features]
cli = [
    "dep:clap",
    "dep:ignore",
]
default = [
    "cli",
    "lsp",
]
lsp = [
    "dep:tokio",
    "dep:tower-lsp-server",
    "dep:uuid",
]

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

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

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

[[test]]
name = "cli"
path = "tests/cli/main.rs"

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

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

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

[[test]]
name = "format"
path = "tests/format/main.rs"

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

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

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

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

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

[dependencies.clap]
version = "4.5.60"
features = ["derive"]
optional = true

[dependencies.dirs]
version = "6.0.0"

[dependencies.env_logger]
version = "0.11.8"

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

[dependencies.log]
version = "0.4.28"
features = ["release_max_level_info"]

[dependencies.regex]
version = "1.12.2"

[dependencies.rowan]
version = "0.16.1"

[dependencies.salsa]
version = "0.26.0"

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

[dependencies.serde-saphyr]
version = "0.0.21"

[dependencies.serde_json]
version = "1.0"

[dependencies.similar]
version = "2.6.0"
features = ["text"]

[dependencies.tempfile]
version = "3.26"

[dependencies.textwrap]
version = "0.16.2"

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

[dependencies.toml]
version = "1.0.6"

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

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

[dependencies.uuid]
version = "1.22.0"
features = ["v4"]
optional = true

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

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

[dev-dependencies.similar-asserts]
version = "1.7.0"

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

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

[build-dependencies.clap]
version = "4.5.60"
features = ["derive"]

[build-dependencies.clap-markdown]
version = "0.1.5"

[build-dependencies.clap_complete]
version = "4.5.65"

[build-dependencies.clap_mangen]
version = "0.2.31"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.10.0"
