typope 0.4.1

Pedantic source code checker for orthotypography mistakes and other typographical errors
Documentation
# 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.87.0"
name = "typope"
version = "0.4.1"
build = false
include = [
    "README.md",
    "CHANGELOG.md",
    "/src/*",
    "/LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pedantic source code checker for orthotypography mistakes and other typographical errors"
readme = "README.md"
keywords = [
    "typography",
    "development",
    "spelling",
    "pedantic",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ronnychevalier/typope"

[features]
default = ["lang-all"]
lang-all = [
    "lang-c",
    "lang-cpp",
    "lang-go",
    "lang-javascript",
    "lang-json",
    "lang-markdown",
    "lang-python",
    "lang-rust",
    "lang-toml",
    "lang-typescript",
    "lang-yaml",
    "lang-kotlin",
]
lang-c = ["dep:tree-sitter-c"]
lang-cpp = ["dep:tree-sitter-cpp"]
lang-go = ["dep:tree-sitter-go"]
lang-javascript = ["dep:tree-sitter-javascript"]
lang-json = ["dep:tree-sitter-json"]
lang-kotlin = ["dep:tree-sitter-kotlin-ng"]
lang-markdown = [
    "dep:tree-sitter-md",
    "dep:btree-range-map",
]
lang-python = ["dep:tree-sitter-python"]
lang-rust = ["dep:tree-sitter-rust"]
lang-toml = ["dep:tree-sitter-toml-ng"]
lang-typescript = ["dep:tree-sitter-typescript"]
lang-yaml = ["dep:tree-sitter-yaml"]

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

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

[dependencies.anyhow]
version = "1.0.86"

[dependencies.btree-range-map]
version = "0.7.2"
optional = true

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

[dependencies.globset]
version = "0.4.15"

[dependencies.ignore]
version = "0.4.22"

[dependencies.miette]
version = "7.2.0"
features = ["fancy"]

[dependencies.rayon]
version = "1.10.0"

[dependencies.regex]
version = "1.10.5"

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

[dependencies.serde_regex]
version = "1.1.0"

[dependencies.tempfile]
version = "3.10.1"

[dependencies.thiserror]
version = "2.0"

[dependencies.toml]
version = "1.1"

[dependencies.tree-sitter]
version = "0.26"

[dependencies.tree-sitter-c]
version = "0.24"
optional = true

[dependencies.tree-sitter-cpp]
version = "0.23"
optional = true

[dependencies.tree-sitter-go]
version = "0.25"
optional = true

[dependencies.tree-sitter-javascript]
version = "0.25"
optional = true

[dependencies.tree-sitter-json]
version = "0.24"
optional = true

[dependencies.tree-sitter-kotlin-ng]
version = "1.1.0"
optional = true

[dependencies.tree-sitter-md]
version = "0.5"
features = ["parser"]
optional = true

[dependencies.tree-sitter-python]
version = "0.25"
optional = true

[dependencies.tree-sitter-rust]
version = "0.24"
optional = true

[dependencies.tree-sitter-toml-ng]
version = "0.7"
optional = true

[dependencies.tree-sitter-typescript]
version = "0.23.2"
optional = true

[dependencies.tree-sitter-yaml]
version = "0.7"
optional = true

[dependencies.winnow]
version = "1.0"
features = [
    "ascii",
    "parser",
    "std",
    "simd",
]
default-features = false

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

[dev-dependencies.trycmd]
version = "1.2"

[lints.clippy]
as_ptr_cast_mut = "warn"
cast_lossless = "warn"
dbg_macro = "warn"
expect_used = "warn"
indexing_slicing = "warn"
lint_groups_priority = "allow"
panic = "warn"
panic_in_result_fn = "warn"
print_stderr = "warn"
print_stdout = "warn"
todo = "warn"
trailing_empty_array = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unwrap_used = "warn"

[lints.rust]
improper_ctypes = "warn"
improper_ctypes_definitions = "warn"
non_ascii_idents = "warn"
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
trivial_numeric_casts = "warn"

[profile.dev]
opt-level = 1

[profile.release]
lto = true
panic = "abort"
strip = "symbols"