facet-diff-core

Crates.iofacet-diff-core
lib.rsfacet-diff-core
version0.43.2
created_at2025-12-11 16:26:44.01616+00
updated_at2026-01-23 18:03:28.247364+00
descriptionCore types and helpers for diff rendering in Facet
homepagehttps://facet.rs
repositoryhttps://github.com/facet-rs/facet
max_upload_size
id1980041
size276,602
Amos Wenger (fasterthanlime)

documentation

README

facet-diff-core

Coverage Status crates.io documentation MIT/Apache-2.0 licensed Discord

{{crate}}

Core types and helpers for diff rendering in Facet.

This crate provides shared infrastructure for rendering diffs across different serialization formats (XML, JSON, TOML, etc.).

Symbols

Symbol Meaning Color
- Deleted Red
+ Inserted Green
Moved from here Blue
Moved to here Blue

Value-only coloring

Keys/field names stay neutral, only the changed VALUES are colored:

- fill="red"    <- "red" is red, "fill=" is white
+ fill="blue"   <- "blue" is green, "fill=" is white

Usage

This crate is typically used by serializers (facet-xml, facet-json, etc.) to render diffs consistently. You probably want to use facet-diff directly instead of this crate.

Sponsors

Thanks to all individual sponsors:

GitHub Sponsors Patreon

...along with corporate sponsors:

AWS Zed Depot

...without whom this work could not exist.

Special thanks

The facet logo was drawn by Misiasart.

License

Licensed under either of:

at your option.

Commit count: 3380

cargo fmt