mitsuhiko/similar
A high level diffing library for rust based on diffs observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 98
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2054
- days_rel: n/a
- days_push: 16
- n_releases_24m: 0
Adoption not part of the score
1311 stars · 54 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Similar is a dependency-free Rust crate implementing multiple diffing algorithms (Myers, patience, histogram, LCS) with high-level interfaces for text, byte, and arbitrary sequence diffing. It supports unified diff generation, line/word/character-level diffing, and structured three-way merging with diff3 conflict output.
Use cases
- compute diffs between two texts in Rust
- generate unified diff output for patches
- diff files line by line or word by word
- perform three-way merges with conflict markers
- compare arbitrary sequences of comparable items
- build snapshot testing tools with diff output
- use a diff library in no_std embedded Rust
When to choose
- you need a pure-Rust, dependency-free diffing library
- you want multiple diff algorithms to choose from
- you need unified diff or diff3 merge output
- you target no_std environments
When to avoid
- you need a command-line diff tool rather than a library
- you work outside the Rust ecosystem
- you need binary file diffing beyond byte-level comparison
Facets
library · maturity stable
parser developer-tools developer-tools text-editors version-control rust cross-platform diff unified-diff patience-diff myers-diff three-way-merge no-std snapshot-testing
5 sources
- readme: https://github.com/mitsuhiko/similar · fetched 2026-08-28 · 20cf290fbfc5
- homepage: https://insta.rs/similar · fetched 2026-08-29 · 547ba3730c74
- site_page: https://insta.rs/docs · fetched 2026-08-29 · 4bcfa7bd8385
- registry_crates: https://crates.io/api/v1/crates/similar · fetched 2026-08-29 · ea16c9fccf7b
- site_page: https://insta.rs/changelog · fetched 2026-08-29 · 90e458d9f485
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mitsuhiko/similar | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="mitsuhiko/similar")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem