# 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 = "2021" rust-version = "1.74.0" name = "typope" version = "0.3.0" build = false include = [ "README.md", "CHANGELOG.md", "/src/*", "/LICENSE*", ] 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" [profile.dev] opt-level = 1 [profile.release] lto = true panic = "abort" strip = "symbols" [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.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 = "1.0.61" [dependencies.toml] version = "0.8.14" [dependencies.tree-sitter] version = "0.22.6" [dependencies.tree-sitter-c] version = "0.21.4" optional = true [dependencies.tree-sitter-cpp] version = "0.22.2" optional = true [dependencies.tree-sitter-go] version = "0.21.0" optional = true [dependencies.tree-sitter-json] version = "0.21.0" optional = true [dependencies.tree-sitter-kotlin] version = "0.3.7" optional = true [dependencies.tree-sitter-md] version = "0.2.3" optional = true [dependencies.tree-sitter-python] version = "0.21.0" optional = true [dependencies.tree-sitter-rust] version = "0.21.2" optional = true [dependencies.tree-sitter-toml-ng] version = "0.6.0" optional = true [dependencies.tree-sitter-yaml] version = "0.6.1" optional = true [dependencies.winnow] version = "0.6.13" [dev-dependencies.tempfile] version = "3.10.1" [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-kotlin = ["dep:tree-sitter-kotlin"] 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"] [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" rust_2024_compatibility = "warn" single_use_lifetimes = "warn" trivial_numeric_casts = "warn"