Skip to content

chore(deps): bump similar from 2.7.0 to 3.1.0#14400

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/similar-3.1.0
Open

chore(deps): bump similar from 2.7.0 to 3.1.0#14400
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/similar-3.1.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 21, 2026

Bumps similar from 2.7.0 to 3.1.0.

Changelog

Sourced from similar's changelog.

3.1.0

  • Added capture_diff_slices_by_key and capture_diff_slices_by_key_deadline as convenience helpers for diffing slices by derived keys.
  • Fixed Compact emitting inconsistent DiffOp cursor positions after compaction, which could leave Delete/Insert operations with stale new_index/old_index values.
  • Added explicit lifetime capture (+ use<...>) on iterator-returning APIs to improve compatibility with Rust 2024 lifetime capture behavior. #93

3.0.0

  • Added a Git-style Histogram diff implementation exposed as Algorithm::Histogram, including deadline-aware Myers fallback and comprehensive regression/behavior tests.
  • Raised MSRV to Rust 1.85 and moved the crate to Rust 2024 edition.
  • Added a Hunt-style diff implementation exposed as Algorithm::Hunt.
  • Added configurable inline refinement via InlineChangeOptions and InlineChangeMode, including semantic cleanup and new TextDiff::iter_inline_changes_with_options* methods. #92
  • Added a global disjoint-input fast path in algorithms::diff_deadline to avoid pathological runtimes on large, fully distinct inputs.
  • Improved Algorithm::Myers performance on heavily unbalanced diffs to avoid pathological slowdowns.
  • Added diff_deadline_raw entrypoints in the algorithm modules to bypass shared heuristics and keep minimal intrinsic trait bounds where needed.
  • Added test files in examples/diffs that can be used with the some of the examples as input pairs.
  • Added CachedLookup, a helper for adapting virtual or computed sequences by materializing items on first access and then serving borrowed values through normal indexing. The owned-lookup example demonstrates this approach for issue #33.
  • Fixed ranged indexing in the classic LCS table algorithm.
  • Improved diff compaction to merge adjacent delete hunks across equal runs.
  • Excluded development scripts from published crate contents. #87
  • TextDiff::from_* and TextDiffConfig::diff_* now accept owned inputs (String, Vec<u8>, Cow) in addition to borrowed inputs. This allows returning text diffs from functions without external owner lifetimes. #65
  • TextDiff no longer exposes old_slices / new_slices. Use old_len, new_len, old_slice, new_slice, iter_old_slices, iter_new_slices, old_lookup, and new_lookup instead.
  • TextDiff::iter_changes now panics on invalid out-of-bounds DiffOp ranges instead of silently truncating iteration.
  • utils::diff_lines_inline now takes &TextDiff and options rather than (Algorithm, old, new, options).
  • utils::diff_lines now avoids a second line-tokenization pass.
  • Renamed get_diff_ratio to diff_ratio.
  • Added first-class no_std + alloc support with an explicit default std feature.
  • Added optional hashbrown backend for no_std map storage

... (truncated)

Commits
  • 8ae2c3f chore(release): prepare 3.1.0
  • 37dfae4 Add use clause to iterator types for improved lifetime management (#93)
  • 6e321ad feat(api): add capture_diff_slices_by_key
  • d943be3 feat: Added a float bucket example
  • ff76e5d fix(compact): normalize stale diff op cursors
  • db010ec fix(ci): configure crates.io trusted publishing
  • 1f5a7ef chore(release): 3.0.0
  • b69c696 ci: Added publish workflow
  • d59c1ea chore: Restate relationship to pijul
  • 07c20a6 docs(algorithms): document CachedLookup adapter
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Apr 21, 2026
@dependabot dependabot Bot force-pushed the dependabot/cargo/similar-3.1.0 branch from c852701 to 77763d6 Compare April 22, 2026 10:39
Bumps [similar](https://github.com/mitsuhiko/similar) from 2.7.0 to 3.1.0.
- [Changelog](https://github.com/mitsuhiko/similar/blob/main/CHANGELOG.md)
- [Commits](mitsuhiko/similar@2.7.0...3.1.0)

---
updated-dependencies:
- dependency-name: similar
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/similar-3.1.0 branch from 77763d6 to b7e89cc Compare April 24, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

0 participants