[package] name = "typos-cli" version = "1.49.0" description = "Source Code Spelling Correction" readme = "../../README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] repository.workspace = true license.workspace = true edition.workspace = true rust-version.workspace = true include.workspace = true [package.metadata.docs.rs] all-features = true rustdoc-args = ["--generate-link-to-definition"] [package.metadata.release] tag-prefix = "" pre-release-replacements = [ {file="../../CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1}, {file="../../CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1}, {file="../../CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1}, {file="../../CHANGELOG.md", search="", replace="\n## [Unreleased] - ReleaseDate\n", exactly=1}, {file="../../CHANGELOG.md", search="", replace="\n[Unreleased]: https://github.com/crate-ci/typos/compare/{{tag_name}}...HEAD", exactly=1}, {file="../../action/entrypoint.sh", search="VERSION=.*", replace="VERSION={{version}}", min=1}, {file="../../docs/pre-commit.md", search="rev: .*", replace="rev: {{tag_name}}", exactly=1}, {file="../../docs/github-action.md", search="uses: crate-ci/typos@.*", replace="uses: crate-ci/typos@{{tag_name}}", min=1}, {file="../../setup.py", search="TYPOS_VERSION = .*", replace="TYPOS_VERSION = '{{version}}'", exactly=1}, ] [features] default = ["dict", "vars"] dict = ["dep:typos-dict"] vars = ["dep:typos-vars"] unstable-schema = ["dep:schemars"] [[bin]] name = "typos" path = "src/bin/typos-cli/main.rs" doc = false [dependencies] typos = { version = "^0.10", path = "../typos" } varcon-core = { version = "^5.0.7", path = "../varcon-core" } typos-dict = { version = "^0.14", path = "../typos-dict", optional = true } typos-vars = { version = "^0.11", path = "../typos-vars", optional = true } unicase = "2.9.0" anyhow = "1.0" clap = { version = "4.6.0", features = ["derive"] } clap-cargo = "0.18.3" clap-verbosity-flag = "3.0" ignore = "0.4" serde = { version = "1.0", features = ["derive"] } toml = "1.0.7" log = "0.4" env_logger = { version = "0.11", default-features = false, features = ["auto-color"] } bstr = "1.12" ahash = "0.8" difflib = "0.4" proc-exit = "2.0" human-panic = "2.0.6" content_inspector = "0.2.4" derive_more = { version = "2.1", features = ["from", "display"] } derive_setters = "0.1" itertools = "0.15" serde_json = "1.0" typed-arena = "2.0.2" thread_local = "1.1.9" globset = "0.4.18" anstyle = "1.0.14" anstream = "1.0.0" colorchoice-clap = "1.0.8" serde_regex = "1.1.0" regex = "1.12.3" encoding_rs = "0.8.35" serde-sarif = "0.8.0" schemars = { version = "1.2.1", features = ["preserve_order","semver1"], optional = true } annotate-snippets = "0.12.13" terminal_size = "0.4.3" supports-unicode = "3.0.0" compact_str = { version = "0.10.0", features = ["serde"] } [dev-dependencies] assert_fs = "1.1" divan = "0.1.21" maplit = "1.0" snapbox = { version = "1.1.0", features = ["json"] } trycmd = "1.1.1" [[bench]] name = "check_file" harness = false [[bench]] name = "correct_word" harness = false [[bench]] name = "tokenize" harness = false [lints] workspace = true