---
title: "similar 3.2.1 Breaking Changes on crates.io | Since.dev"
description: "What each similar release removed, renamed or changed: 54 breaking changes in 5 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/similar
last_updated: 2026-12-04
---

# 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

Latest version `3.2.1`, released October 24, 2026. [Source repository](https://github.com/mitsuhiko/similar)

Its 3.0.0 release requires [Rust 1.85](https://since.dev/calendar/rust/1.85.md) or later. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [3.0.0](#v-3-0-0) to [3.2.1](#v-3-2-1): 7 breaking changes in 4 versions.

## similar 3.2.1 breaking changes

similar 3.2.1, released October 24, 2026: 1 breaking change.

- **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](https://github.com/mitsuhiko/similar/blob/3.2.1/CHANGELOG.md)

## similar 3.2.0 breaking changes

similar 3.2.0, released August 17, 2026: 1 breaking change.

- **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](https://github.com/mitsuhiko/similar/blob/3.2.0/CHANGELOG.md)

## similar 3.1.2 breaking changes

similar 3.1.2, released August 4, 2026: 1 breaking change.

- **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](https://github.com/mitsuhiko/similar/blob/3.1.2/CHANGELOG.md)

## similar 3.1.0 breaking changes

similar 3.1.0, released April 11, 2026: 4 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](https://github.com/mitsuhiko/similar/blob/3.1.0/CHANGELOG.md)
- **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](https://crates.io/crates/similar/3.1.0)
- **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](https://crates.io/crates/similar/3.1.0)
- **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](https://crates.io/crates/similar/3.1.0)

## similar 3.0.0 breaking changes

similar 3.0.0, released April 1, 2026: 47 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](https://crates.io/crates/similar/3.0.0)
- **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](https://crates.io/crates/similar/3.0.0)
- **Renamed** `similar::get_diff_ratio`  

Call diff_ratio instead of get_diff_ratio. [crates.io](https://crates.io/crates/similar/3.0.0)
- **Behavior changed**  

Users on older Rust toolchains must upgrade to Rust 1.85 and the crate moved to the Rust 2024 edition. [github.com](https://github.com/mitsuhiko/similar/blob/3.0.0/CHANGELOG.md)
- **Behavior changed** `TextDiff.from_*`  

Constructors accept owned inputs in addition to borrowed ones; existing borrowed usage is unaffected. [github.com](https://github.com/mitsuhiko/similar/blob/3.0.0/CHANGELOG.md)
- **Behavior changed** `TextDiff.iter_changes`  

It now panics on out-of-bounds DiffOp ranges instead of silently truncating iteration. [github.com](https://github.com/mitsuhiko/similar/blob/3.0.0/CHANGELOG.md)
- **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](https://crates.io/crates/similar/3.0.0)
- **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](https://crates.io/crates/similar/3.0.0)
- **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](https://crates.io/crates/similar/3.0.0)
- **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](https://crates.io/crates/similar/3.0.0)

And 37 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
