similar breaking changes
similar 3.2.1 (October 24, 2026) is its newest release with breaking changes. The first: Behavior changed TextMerge.labels. Every breaking API change we have recorded in similar on crates.io: 54 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.2.1, released October 24, 2026. Source repository
Its 3.0.0 release requires Rust 1.85 or later. Rust end of life dates.
similar 3.2.1 breaking changes
- Behavior changed
TextMerge.labels
TextMerge::labels now replaces carriage returns and newlines in labels with spaces instead of writing them into conflict markers. Code that relied on multi-line labels will see different output. github.com
similar 3.2.0 breaking changes
- Behavior changed
Algorithm.Myers
Algorithm::Myers now produces different diff output on some inputs; use Algorithm::RawMyers to keep the previous shortest-edit-script behavior. github.com
similar 3.1.2 breaking changes
- Behavior changed
Algorithm.Lcs
Algorithm::Lcs now reports identical subranges using the supplied range offsets instead of zero-based indices. Code that relied on zero-based indices for these subranges must adjust. github.com
similar 3.1.0 breaking changes
- Behavior changed
Iterator-returning APIs now declare explicit lifetime capture (use<...>) for Rust 2024 compatibility; code relying on the previous lifetime inference may need review. github.com - Signature changed
similar::DiffOp::iter_slices
Was fn iter_slices<'lookup, Old, New, T>(&self, old: &'lookup Old, new: &'lookup New) -> impl Iterator<Item = (ChangeTag, &'lookup T)> where T: 'lookup + ?Sized, Old: Index<Range<usize>, Output = T> + ?Sized, New: Index<Range<usize>... crates.io - Signature changed
similar::udiff::UnifiedDiff::iter_hunks
Was fn iter_hunks(&self) -> impl Iterator<Item = UnifiedDiffHunk<'diff, 'old, 'new, T>>; now fn iter_hunks(&self) -> impl Iterator<Item = UnifiedDiffHunk<'diff, 'old, 'new, T>> + use<'diff, 'old, 'new, T>. crates.io - Signature changed
similar::utils::TextDiffRemapper::iter_slices
Was fn iter_slices(&self, op: &DiffOp) -> impl Iterator<Item = (ChangeTag, &'x T)>; now fn iter_slices(&self, op: &DiffOp) -> impl Iterator<Item = (ChangeTag, &'x T)> + use<'x, T>. crates.io
similar 3.0.0 breaking changes
- Removed
similar::TextDiff::new_slices
Use old_len, new_len, old_slice, new_slice, iter_old_slices, iter_new_slices, old_lookup and new_lookup instead. crates.io - Removed
similar::TextDiff::old_slices
Use old_len, new_len, old_slice, new_slice, iter_old_slices, iter_new_slices, old_lookup and new_lookup instead. crates.io - Renamed
similar::get_diff_ratio
Call diff_ratio instead of get_diff_ratio. crates.io - Behavior changed
Users on older Rust toolchains must upgrade to Rust 1.85 and the crate moved to the Rust 2024 edition. github.com - Behavior changed
TextDiff.from_*
Constructors accept owned inputs in addition to borrowed ones; existing borrowed usage is unaffected. github.com - Behavior changed
TextDiff.iter_changes
It now panics on out-of-bounds DiffOp ranges instead of silently truncating iteration. github.com - Signature changed
similar::algorithms::diff
Was fn diff<Old, New, D>(alg: Algorithm, d: &mut D, old: &Old, old_range: Range<usize>, new: &New, new_range: Range<usize>) -> Result<(), D::Error> where Old: Index<usize> + ?Sized, New: Index<usize> + ?Sized, D: DiffHook, Old::Output... crates.io - Signature changed
similar::algorithms::diff_deadline
Was fn diff_deadline<Old, New, D>(alg: Algorithm, d: &mut D, old: &Old, old_range: Range<usize>, new: &New, new_range: Range<usize>, deadline: Option<Instant>) -> Result<(), D::Error> where Old: Index<usize> + ?Sized, New: Index<usize> +... crates.io - Signature changed
similar::algorithms::diff_slices
Was fn diff_slices<D, T>(alg: Algorithm, d: &mut D, old: &[T], new: &[T]) -> Result<(), D::Error> where D: DiffHook, T: Eq + Hash + Ord,; now fn diff_slices<D, T>(alg: Algorithm, d: &mut D, old: &[T], new: &[T]) -> Result<(), D::Error>... crates.io - Signature changed
similar::algorithms::diff_slices_deadline
Was fn diff_slices_deadline<D, T>(alg: Algorithm, d: &mut D, old: &[T], new: &[T], deadline: Option<Instant>) -> Result<(), D::Error> where D: DiffHook, T: Eq + Hash + Ord,; now fn diff_slices_deadline<D, T>(alg: Algorithm, d: &mut D, old... crates.io
And 37 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.