[package] name = "typope" edition = "2021" description = "Pedantic source code checker for orthotypography mistakes and other typographical errors" version = "0.3.0" license = "MIT OR Apache-2.0" readme = "README.md" rust-version = "1.74.0" categories = ["command-line-utilities", "development-tools", "text-processing"] keywords = ["typography", "development", "spelling", "pedantic"] include = ["README.md", "CHANGELOG.md", "/src/*", "/LICENSE*"] repository = "https://github.com/ronnychevalier/typope" [features] default = ["lang-all"] lang-all = [ "lang-c", "lang-cpp", "lang-go", "lang-json", "lang-markdown", "lang-python", "lang-rust", "lang-toml", "lang-yaml", "lang-kotlin", ] lang-c = ["dep:tree-sitter-c"] lang-cpp = ["dep:tree-sitter-cpp"] lang-go = ["dep:tree-sitter-go"] lang-json = ["dep:tree-sitter-json"] 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-yaml = ["dep:tree-sitter-yaml"] lang-kotlin = ["dep:tree-sitter-kotlin"] [dependencies] anyhow = "1.0.86" btree-range-map = { version = "0.7.2", optional = true } clap = { version = "4.5.9", features = ["derive"] } ignore = "0.4.22" miette = { version = "7.2.0", features = ["fancy"] } rayon = "1.10.0" regex = "1.10.5" serde = { version = "1.0.204", features = ["derive"] } serde_regex = "1.1.0" tempfile = "3.10.1" thiserror = "1.0.61" toml = "0.8.14" tree-sitter = "0.22.6" tree-sitter-c = { version = "0.21.4", optional = true } tree-sitter-cpp = { version = "0.22.2", optional = true } tree-sitter-go = { version = "0.21.0", optional = true } tree-sitter-json = { version = "0.21.0", optional = true } tree-sitter-kotlin = { version = "0.3.7", optional = true } tree-sitter-md = { version = "0.2.3", optional = true } tree-sitter-python = { version = "0.21.0", optional = true } tree-sitter-rust = { version = "0.21.2", optional = true } tree-sitter-toml-ng = { version = "0.6.0", optional = true } tree-sitter-yaml = { version = "0.6.1", optional = true } winnow = "0.6.13" [lints.rust] trivial_numeric_casts = "warn" improper_ctypes = "warn" improper_ctypes_definitions = "warn" non_ascii_idents = "warn" rust_2018_idioms = "warn" rust_2024_compatibility = "warn" single_use_lifetimes = "warn" [lints.clippy] unwrap_used = "warn" expect_used = "warn" indexing_slicing = "warn" panic_in_result_fn = "warn" dbg_macro = "warn" print_stderr = "warn" print_stdout = "warn" panic = "warn" todo = "warn" unnecessary_safety_comment = "warn" unnecessary_safety_doc = "warn" unimplemented = "warn" cast_lossless = "warn" trailing_empty_array = "warn" as_ptr_cast_mut = "warn" lint_groups_priority = "allow" [profile.dev] opt-level = 1 [profile.release] lto = true strip = "symbols" panic = "abort" [dev-dependencies] tempfile = "3.10.1"