#serde-derive #value #rich #metadata

macro rich_serde_derive

generic framework to attach metadata to Rust values

1 unstable release

Uses new Rust 2024

new 0.1.1 Apr 15, 2025

#2817 in Procedural macros

MIT license

24KB
550 lines

This crate provides derive macros for rich_serde traits.


Rich value wrapper for Rust

The Rich wrapper type represents a value with some attached metadata. This is a fairly simple type that could be defined locally in your project. The goal of this library is to provide various helper methods to make it more convenient to manipulate such values.

An important use-case for this library is to track metadata for config values, such as the source where a value is coming from. The serde_rich crate provides integration with serde to collect deserialization information.

Dependencies

~215–650KB
~15K SLoC