This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [annotate-snippets](https://redirect.github.com/rust-lang/annotate-snippets-rs) | dependencies | patch | `0.12.9` → `0.12.11` | | [clap](https://redirect.github.com/clap-rs/clap) | dependencies | patch | `4.5.53` → `4.5.56` | | [derive_more](https://redirect.github.com/JelteF/derive_more) | dependencies | minor | `2.0.1` → `2.1.1` | | [derive_setters](https://redirect.github.com/Lymia/derive_setters) | dependencies | patch | `0.1.8` → `0.1.9` | | [human-panic](https://redirect.github.com/rust-cli/human-panic) | dependencies | patch | `2.0.4` → `2.0.6` | | [indexmap](https://redirect.github.com/indexmap-rs/indexmap) | dev-dependencies | minor | `2.12.1` → `2.13.0` | | [log](https://redirect.github.com/rust-lang/log) | dependencies | patch | `0.4.28` → `0.4.29` | | [schemars](https://graham.cool/schemars/) ([source](https://redirect.github.com/GREsau/schemars)) | dependencies | minor | `1.1.0` → `1.2.0` | | [snapbox](https://redirect.github.com/assert-rs/snapbox) | dev-dependencies | patch | `0.6.23` → `0.6.24` | | [toml](https://redirect.github.com/toml-rs/toml) | dependencies | patch | `0.9.8` → `0.9.11` | | [unicase](https://redirect.github.com/seanmonstar/unicase) | dev-dependencies | minor | `2.8.1` → `2.9.0` | | [unicase](https://redirect.github.com/seanmonstar/unicase) | dependencies | minor | `2.8.1` → `2.9.0` | --- ### Release Notes <details> <summary>rust-lang/annotate-snippets-rs (annotate-snippets)</summary> ### [`v0.12.11`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#01211---2026-01-29) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.12.10...0.12.11) ##### Fixed - Fix Unicode highlight alignment in patches [#​357](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/357) ### [`v0.12.10`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#01210---2025-12-01) [Compare Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.12.9...0.12.10) ##### Fixed - Render all removed lines when multiple Patch remove lines [#​353](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/353) </details> <details> <summary>clap-rs/clap (clap)</summary> ### [`v4.5.56`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4556---2026-01-29) [Compare Source](https://redirect.github.com/clap-rs/clap/compare/v4.5.55...v4.5.56) ##### Fixes - On conflict error, don't show conflicting arguments in the usage ### [`v4.5.55`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4555---2026-01-27) [Compare Source](https://redirect.github.com/clap-rs/clap/compare/v4.5.54...v4.5.55) ##### Fixes - Fix inconsistency in precedence between positionals with a `value_terminator("--")` and escapes (`--`) where `./foo -- bar` means the first arg is empty, rather than escaping future args ### [`v4.5.54`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4554---2026-01-02) [Compare Source](https://redirect.github.com/clap-rs/clap/compare/v4.5.53...v4.5.54) ##### Fixes - *(help)* Move `[default]` to its own paragraph when `PossibleValue::help` is present in `--help` </details> <details> <summary>JelteF/derive_more (derive_more)</summary> ### [`v2.1.1`](https://redirect.github.com/JelteF/derive_more/blob/HEAD/CHANGELOG.md#211---2025-12-22) [Compare Source](https://redirect.github.com/JelteF/derive_more/compare/v2.1.0...v2.1.1) ##### Fixed - `.as_dyn_error()` method hygiene inside `Error` derive expansion. ([#​527](https://redirect.github.com/JelteF/derive_more/pull/527)) ### [`v2.1.0`](https://redirect.github.com/JelteF/derive_more/blob/HEAD/CHANGELOG.md#210---2025-12-02) [Compare Source](https://redirect.github.com/JelteF/derive_more/compare/v2.0.1...v2.1.0) ##### Added - Support `#[display(rename_all = "<casing>")]` attribute to change output for implicit naming of unit enum variants or unit structs when deriving `Display`. ([#​443](https://redirect.github.com/JelteF/derive_more/pull/443)) - Support `#[from_str(rename_all = "<casing>")]` attribute for unit enum variants and unit structs when deriving `FromStr`. ([#​467](https://redirect.github.com/JelteF/derive_more/pull/467)) - Support `Option` fields for `Error::source()` in `Error` derive. ([#​459](https://redirect.github.com/JelteF/derive_more/pull/459)) - Support structs with no fields in `FromStr` derive. ([#​469](https://redirect.github.com/JelteF/derive_more/pull/469)) - Add `PartialEq` derive similar to `std`'s one, but considering generics correctly, and implementing `ne()` method as well. ([#​473](https://redirect.github.com/JelteF/derive_more/pull/473), [#​475](https://redirect.github.com/JelteF/derive_more/pull/475)) - Add `Eq` derive similar to `std`'s one, but considering generics correctly. ([#​479](https://redirect.github.com/JelteF/derive_more/pull/479)) - Proxy-pass `#[allow]`/`#[expect]` attributes of the type in `Constructor` derive. ([#​477](https://redirect.github.com/JelteF/derive_more/pull/477)) - Support `Deref` and `DerefMut` derives for enums. ([#​485](https://redirect.github.com/JelteF/derive_more/pull/485)) - Support custom error in `FromStr` derive. ([#​494](https://redirect.github.com/JelteF/derive_more/pull/494)) - Support custom error in `TryInto` derive. ([#​503](https://redirect.github.com/JelteF/derive_more/pull/503)) - Support skipping fields in `Add`-like, `AddAssign`-like, `Mul`-like and `MulAssign`-like derives. ([#​472](https://redirect.github.com/JelteF/derive_more/pull/472)) ##### Changed - The minimum supported Rust version (MSRV) is now Rust 1.81. ([#​466](https://redirect.github.com/JelteF/derive_more/pull/466)) - `Add`-like, `AddAssign`-like, `Mul`-like and `MulAssign`-like derives now infer trait bounds for generics structurally (bound field types instead of type parameters directly). ([#​472](https://redirect.github.com/JelteF/derive_more/pull/472)) ##### Fixed - Suppress deprecation warnings in generated code. ([#​454](https://redirect.github.com/JelteF/derive_more/pull/454)) - Silent no-op when `#[try_from(repr)]` attribute is not specified for `TryFrom` derive. ([#​458](https://redirect.github.com/JelteF/derive_more/pull/458)) - Missing trait bounds in `AsRef`/`AsMut` derives when associative types are involved. ([#​474](https://redirect.github.com/JelteF/derive_more/pull/474)) - Erroneous code generated in `Try`/`TryInto` derives when `Self` type is present in the struct or enum definition. ([#​489](https://redirect.github.com/JelteF/derive_more/pull/489)) - Dependency on unstable `feature(error_generic_member_access)` in `Error` derive when using `Backtrace` on a non-nightly toolchain. ([#​513](https://redirect.github.com/JelteF/derive_more/pull/513)) - Broken support for `#[<display-trait>("default formatting")]` attribute without `{_variant}` being used as default for enum variants without explicit formatting. ([#​495](https://redirect.github.com/JelteF/derive_more/pull/495)) </details> <details> <summary>Lymia/derive_setters (derive_setters)</summary> ### [`v0.1.9`](https://redirect.github.com/Lymia/derive_setters/blob/HEAD/CHANGELOG.md#v019-2026-01-30) [Compare Source](https://redirect.github.com/Lymia/derive_setters/compare/v0.1.8...v0.1.9) - Add support for delegating setters for generic types. (Thanks [@​MrSubidubi](https://redirect.github.com/MrSubidubi)) - Documentation has been moved from the `README.md` to a proper rustdoc. - MSRV is increased to 1.68+ due to dependency updates. ##### Commit Statistics <csr-read-only-do-not-edit/> - 16 commits contributed to the release. - 0 commits were understood as [conventional](https://www.conventionalcommits.org). - 0 issues like '(#ID)' were seen in commit messages ##### Commit Details <csr-read-only-do-not-edit/> <details><summary>view details</summary> - **Uncategorized** - Add proper changelog entries. ([`87037bf`](https://redirect.github.com/Lymia/derive_setters/commit/87037bf65042bf127aa0c1d3986285731ccbfb2b)) - Adjusting changelogs prior to release of derive\_setters v0.1.9 ([`f8a3c46`](https://redirect.github.com/Lymia/derive_setters/commit/f8a3c46737f229cb9472f0fafe790d5f0d115609)) - Add tests for generics in compile-pass ([`8d37502`](https://redirect.github.com/Lymia/derive_setters/commit/8d375020487594b888ebd0f6e8e38007916eb663)) - Add trybuild tests. ([`74e353f`](https://redirect.github.com/Lymia/derive_setters/commit/74e353f6a9413047383e28898962fc3ecbe8d90d)) - Update Rust version. ([`1ca0910`](https://redirect.github.com/Lymia/derive_setters/commit/1ca091031ec85d3e7dbeca33f234986677d037f4)) - Update the rustfmt options and run rustfmt. ([`0ab982f`](https://redirect.github.com/Lymia/derive_setters/commit/0ab982f01254c1e17b7745f54aebe6a7f1ece22b)) - Move the documentation into rustdoc. ([`722f3fc`](https://redirect.github.com/Lymia/derive_setters/commit/722f3fc029f56fdf31c8e838a4a8a05a609d0a36)) - Code style improvements. ([`da6237b`](https://redirect.github.com/Lymia/derive_setters/commit/da6237bccf4f56519e38e0f3d4a51cd6c050dae0)) - Remove an unused field. ([`8a112f3`](https://redirect.github.com/Lymia/derive_setters/commit/8a112f31abc90a511c92595422fc946cd6d0006b)) - Update MSRV to 1.68.0 due to dependency updates. ([`474375d`](https://redirect.github.com/Lymia/derive_setters/commit/474375d304cbafa4b8bd8b0d27060a71c0588e71)) - Update documentation and adds a changelog. ([`66c390a`](https://redirect.github.com/Lymia/derive_setters/commit/66c390ae72f2644d89c6a6706f5b3fd523e30fee)) - Update darling version. ([`30ea90e`](https://redirect.github.com/Lymia/derive_setters/commit/30ea90e7d7c0be674eb9ccc9324e4d020b671299)) - Implement tests for generic delegates. ([`bd14002`](https://redirect.github.com/Lymia/derive_setters/commit/bd1400267cee1e30d216eff0ac0cd9d20dea3c2c)) - Run rustfmt. ([`ccdc14e`](https://redirect.github.com/Lymia/derive_setters/commit/ccdc14e939ac9cd3b098015c9851b21685d077c9)) - Merge pull request [#​19](https://redirect.github.com/Lymia/derive_setters/issues/19) from MrSubidubi/delegate-generic-support ([`284500e`](https://redirect.github.com/Lymia/derive_setters/commit/284500e046344bb9a407d954cc44066a4b641c45)) - Add support for generics in `generate_delegates` ([`d777525`](https://redirect.github.com/Lymia/derive_setters/commit/d7775259dfb21564b2c5cee4d5b3a692158c5b6b)) </details> </details> <details> <summary>rust-cli/human-panic (human-panic)</summary> ### [`v2.0.6`](https://redirect.github.com/rust-cli/human-panic/blob/HEAD/CHANGELOG.md#206---2025-12-29) [Compare Source](https://redirect.github.com/rust-cli/human-panic/compare/v2.0.5...v2.0.6) ##### Features - Added `Metadata::repository` as a fallback for `Metadata::homepage` ### [`v2.0.5`](https://redirect.github.com/rust-cli/human-panic/blob/HEAD/CHANGELOG.md#205---2025-12-26) [Compare Source](https://redirect.github.com/rust-cli/human-panic/compare/v2.0.4...v2.0.5) ##### Performance - Improve build times on some platforms by changing from `os_info` to `sysinfo` </details> <details> <summary>indexmap-rs/indexmap (indexmap)</summary> ### [`v2.13.0`](https://redirect.github.com/indexmap-rs/indexmap/blob/HEAD/RELEASES.md#2130-2026-01-07) [Compare Source](https://redirect.github.com/indexmap-rs/indexmap/compare/2.12.1...2.13.0) - Implemented `Clone` for `IntoKeys` and `IntoValues`. - Added `map::Slice::split_at_checked` and `split_at_mut_checked`. - Added `set::Slice::split_at_checked`. </details> <details> <summary>rust-lang/log (log)</summary> ### [`v0.4.29`](https://redirect.github.com/rust-lang/log/blob/HEAD/CHANGELOG.md#0429---2025-12-02) [Compare Source](https://redirect.github.com/rust-lang/log/compare/0.4.28...0.4.29) </details> <details> <summary>GREsau/schemars (schemars)</summary> ### [`v1.2.0`](https://redirect.github.com/GREsau/schemars/blob/HEAD/CHANGELOG.md#120---2025-12-25-) [Compare Source](https://redirect.github.com/GREsau/schemars/compare/v1.1.0...v1.2.0) ##### Added - Add smol\_str03 feature ([#​486](https://redirect.github.com/GREsau/schemars/pull/486)) ##### Changed - Schemas generated for `HashMap`/`BTreeMap` with enum keys are now more specific ([#​452](https://redirect.github.com/GREsau/schemars/pull/452)) </details> <details> <summary>assert-rs/snapbox (snapbox)</summary> ### [`v0.6.24`](https://redirect.github.com/assert-rs/snapbox/compare/snapbox-v0.6.23...snapbox-v0.6.24) [Compare Source](https://redirect.github.com/assert-rs/snapbox/compare/snapbox-v0.6.23...snapbox-v0.6.24) </details> <details> <summary>toml-rs/toml (toml)</summary> ### [`v0.9.11`](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.10...toml-v0.9.11) [Compare Source](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.10...toml-v0.9.11) ### [`v0.9.10`](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.9...toml-v0.9.10) [Compare Source](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.9...toml-v0.9.10) ### [`v0.9.9`](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.8...toml-v0.9.9) [Compare Source](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.8...toml-v0.9.9) </details> <details> <summary>seanmonstar/unicase (unicase)</summary> ### [`v2.9.0`](https://redirect.github.com/seanmonstar/unicase/releases/tag/v2.9.0) [Compare Source](https://redirect.github.com/seanmonstar/unicase/compare/v2.8.1...v2.9.0) #### What's Changed - Check for ASCII in `from` impl as well by [@​samadDotDev](https://redirect.github.com/samadDotDev) in [#​77](https://redirect.github.com/seanmonstar/unicase/pull/77) - update to Unicode v17.0.0 by [@​seanmonstar](https://redirect.github.com/seanmonstar) in [#​79](https://redirect.github.com/seanmonstar/unicase/pull/79) #### New Contributors - [@​samadDotDev](https://redirect.github.com/samadDotDev) made their first contribution in [#​77](https://redirect.github.com/seanmonstar/unicase/pull/77) **Full Changelog**: <https://github.com/seanmonstar/unicase/compare/v2.8.1...v2.9.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/crate-ci/typos). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Mi4xIiwidXBkYXRlZEluVmVyIjoiNDIuOTIuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
typos
Source code spell checker
Finds and corrects spelling mistakes among source code:
- Fast enough to run on monorepos
- Low false positives so you can run on PRs
Dual-licensed under MIT or Apache 2.0
Documentation
- Installation
- Getting Started
- Reference
- FAQ
- Comparison with other spell checkers
- Projects using typos
- Benchmarks
- Design
- Contribute
- CHANGELOG
Install
Download a pre-built binary (installable via gh-install).
Or use rust to install:
$ cargo install typos-cli --locked
Or use Homebrew to install:
$ brew install typos-cli
Or use Conda to install:
$ conda install typos
Or use Pacman to install:
$ sudo pacman -S typos
Getting Started
Most commonly, you'll either want to see what typos are available with
$ typos
Or have them fixed
$ typos --write-changes
$ typos -w
If there is any ambiguity (multiple possible corrections), typos will just report it to the user and move on.
False Positives
Sometimes, what looks like a typo is intentional, like with people's names, acronyms, or localized content.
To mark a word or an identifier (grouping of words) as valid, add it to your _typos.toml by declaring itself as the valid spelling:
[default]
extend-ignore-identifiers-re = [
# *sigh* this just isn't worth the cost of fixing
"AttributeID.*Supress.*",
]
[default.extend-identifiers]
# *sigh* this just isn't worth the cost of fixing
AttributeIDSupressMenu = "AttributeIDSupressMenu"
[default.extend-words]
# Don't correct the surname "Teh"
teh = "teh"
For more ways to ignore or extend the dictionary with examples, see the config reference.
For cases like localized content, you can disable spell checking of file contents while still checking the file name:
[type.po]
extend-glob = ["*.po"]
check-file = false
(run typos --type-list to see configured file types)
If you need some more flexibility, you can completely exclude some files from consideration:
[files]
extend-exclude = ["localized/*.po"]
Integrations
- GitHub Actions
- pre-commit
- 🐊Putout Processor
- Visual Studio Code
- typos-lsp (Language Server Protocol server)
- GitLab Code Quality
Custom
typos provides several building blocks for custom native integrations
-reads fromstdin,--write-changeswill be written tostdout--diffto provide a diff--format jsonto get jsonlines with exit code 0 on no errors, code 2 on typos, anything else is an error.
Examples:
$ # Read file from stdin, write corrected version to stdout
$ typos - --write-changes
$ # Creates a diff of what would change
$ typos dir/file --diff
$ # Fully programmatic control
$ typos dir/file --format json
Debugging
You can see what the effective config looks like by running
$ typos --dump-config -
You can then see how typos is processing your project with
$ typos --files
$ typos --identifiers
$ typos --words
If you need to dig in more, you can enable debug logging with -v
FAQ
Why was ... not corrected?
Does the file show up in typos --files?
If not, check your config with typos --dump-config -.
The [files] table controls how we walk files.
If you are using files.extend-exclude,
are you running into #593?
If you are using files.ignore-vcs = true,
is the file in your .gitignore but git tracks it anyways?
Prefer allowing the file explicitly (see #909).
Does the identifier show up in typos --identifiers or the word show up in typos --words?
If not, it might be subject to one of typos' heuristics for
detecting non-words (like hashes) or
unambiguous words (like words after a \ escape).
If it is showing up, likely typos doesn't know about it yet.
typos maintains a list of known typo corrections to keep the false positive
count low so it can safely run unassisted.
This is in contrast to most spell checking UIs people use where there is a known list of valid words. In this case, the spell checker tries to guess your intent by finding the closest-looking word. It then has a gauge for when a word isn't close enough and assumes you know best. The user has the opportunity to verify these corrections and explicitly allow or reject them.
For more on the trade offs of these approaches, see Design.
- To correct it locally, see also our False Positives documentation.
- To contribute your correction, see Contribute
