# rust-pretty-assertions/rust-pretty-assertions

Overwrite `assert_eq!` with a drop-in replacement, adding a colorful diff.

Repository: https://github.com/rust-pretty-assertions/rust-pretty-assertions
Canonical: https://ross.abutalabs.com/products/rust-pretty-assertions
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2025-09-26T21:37:40+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 44, release rhythm 8, longevity 100
- inputs: {"age_days": 3447, "days_push": 341, "days_rel": 717, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1355, forks 46 (observed 2026-08-28T04:04:29.172966+00:00)

## What it is
A Rust crate that provides drop-in replacements for assert_eq! and assert_ne! macros with colorful, human-readable diffs on failure. It is intended as a dev-dependency to improve test failure output with minimal code changes.

## Use cases
- make rust test failures easier to read
- show a colorful diff when assert_eq fails
- drop-in replacement for std assert_eq in tests
- compare large structs in tests and spot differences quickly
- improve assertion output for strings and collections

## When to choose
- you write Rust tests that use assert_eq! and want clearer failure messages
- you want a one-line change to improve test diagnostics
- you want to avoid affecting production build compile times via dev-dependencies

## When to avoid
- you need exact, stable assertion output for snapshot testing
- you need assertions in production code rather than tests

## Facets
- artifact type: library
- maturity: active
- function: testing
- domain: testing, developer-tools
- platform: rust, cross-platform
- tags: assertions, diff, rust-crate, dev-dependency, test-output

## Member repositories
- rust-pretty-assertions/rust-pretty-assertions (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:29.172966+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:41:58.999071+00:00, confidence not recorded.
  - readme: https://github.com/rust-pretty-assertions/rust-pretty-assertions (fetched 2026-08-28T04:04:29.172966+00:00, sha 3d1e4f03c5b7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
