badness 0.14.0

A language server, formatter, and linter for LaTeX
# 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 = "badness"
version = "0.14.0"
authors = ["Johan Larsson <johan@jolars.co>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A language server, formatter, and linter for LaTeX"
homepage = "https://badness.dev/"
documentation = "https://badness.dev"
readme = "README.md"
keywords = [
    "latex",
    "language-server",
    "formatter",
    "linter",
]
categories = [
    "command-line-utilities",
    "text-processing",
    "parsing",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/jolars/badness"

[package.metadata.deb]
maintainer = "Johan Larsson <johan@jolars.co>"
copyright = "2026, Johan Larsson <johan@jolars.co>"
license-file = [
    "LICENSE",
    "4",
]
extended-description = "Badness is a formatter, linter, and language server for LaTeX. It formats .tex, .sty/.cls, .dtx/.ins, and .bib files with deterministic, rule-based layout, reports diagnostics with optional autofixes, and exposes an integrated language server for editor support."
depends = "$auto"
section = "text"
priority = "optional"
assets = [
    [
    "target/release/badness",
    "usr/bin/",
    "755",
],
    [
    "README.md",
    "usr/share/doc/badness/",
    "644",
],
    [
    "LICENSE",
    "usr/share/doc/badness/",
    "644",
],
    [
    "target/man/*.1",
    "usr/share/man/man1/",
    "644",
],
    [
    "target/completions/badness.bash",
    "usr/share/bash-completion/completions/badness",
    "644",
],
    [
    "target/completions/badness.fish",
    "usr/share/fish/vendor_completions.d/badness.fish",
    "644",
],
    [
    "target/completions/_badness",
    "usr/share/zsh/vendor-completions/_badness",
    "644",
],
]

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

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

[[package.metadata.generate-rpm.assets]]
source = "LICENSE"
dest = "/usr/share/doc/badness/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/badness.bash"
dest = "/usr/share/bash-completion/completions/badness"
mode = "644"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.annotate-snippets]
version = "0.12.16"

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

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.dirs]
version = "6.0.0"

[dependencies.ignore]
version = "0.4.26"

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

[dependencies.lsp-server]
version = "0.10"

[dependencies.lsp-types]
version = "0.97"

[dependencies.phf]
version = "0.14"

[dependencies.rayon]
version = "1.10"

[dependencies.rowan]
version = "0.16.1"

[dependencies.salsa]
version = "0.28.0"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.smol_str]
version = "0.3.2"

[dependencies.toml]
version = "1"

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

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

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

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

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

[build-dependencies.clapdown]
version = "0.1.0"

[build-dependencies.phf_codegen]
version = "0.14"

[build-dependencies.serde]
version = "1"
features = ["derive"]

[build-dependencies.serde_json]
version = "1"

[profile.release]
strip = "symbols"