#deserialize #traits #proc-macro #context #deriving #data-structures

macro context_deserialize_derive

Procedural macro for deriving the ContextDeserialize trait

3 unstable releases

Uses new Rust 2024

0.2.1 Jan 14, 2026
0.2.0 Nov 7, 2025
0.1.0 Oct 8, 2025

#37 in #deriving

Download history 201/week @ 2025-10-08 20/week @ 2025-10-15 49/week @ 2025-10-22 66/week @ 2025-11-05 30/week @ 2025-11-12 1308/week @ 2025-11-26 1482/week @ 2025-12-03 1600/week @ 2025-12-10 1079/week @ 2025-12-17 206/week @ 2025-12-24 790/week @ 2025-12-31 1390/week @ 2026-01-07 1931/week @ 2026-01-14

4,459 downloads per month
Used in context_deserialize

Apache-2.0

7KB
104 lines

context_deserialize

CI Crates.io Documentation

A Rust library for deserializing data structures with additional context, built on top of serde.

Overview

context_deserialize provides a trait similar to serde::Deserialize, but with an additional context parameter that can be passed through the deserialization process. This is useful when you need external information (like a version number or configuration) to properly deserialize your data structures.

Dependencies

~145–550KB
~13K SLoC