panache 2.2.0

A formatter for Pandoc, Quarto, and RMarkdown documents
# 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.2.0"
authors = ["Johan Larsson <johan@jolars.co>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A formatter for Pandoc, Quarto, and RMarkdown documents"
homepage = "https://jolars.github.io/panache"
readme = "README.md"
keywords = [
    "quarto",
    "pandoc",
    "markdown",
    "formatter",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
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 = "format"
path = "tests/format/main.rs"

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

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

[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.serde]
version = "1.0.228"
features = ["derive"]

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

[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.1"

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

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

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

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

[build-dependencies.clap]
version = "4.5.57"
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"