facet-diff-core 0.32.1

Core types and helpers for diff rendering in Facet
Documentation

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:

...along with corporate sponsors:

...without whom this work could not exist.

Special thanks

The facet logo was drawn by Misiasart.

License

Licensed under either of:

at your option.