#deserialize #context-aware #data-structures #traits #extending

context_deserialize

Context-aware deserialization trait for Rust data structures, extending serde with additional context parameters

2 unstable releases

Uses new Rust 2024

new 0.2.0 Nov 7, 2025
0.1.0 Oct 8, 2025

#1192 in Parser implementations

Download history 145/week @ 2025-10-03 50/week @ 2025-10-10 14/week @ 2025-10-17 38/week @ 2025-10-24

247 downloads per month

Apache-2.0

8KB
103 lines

Context-aware deserialization for Rust data structures.

This crate provides the ContextDeserialize trait, which extends serde's deserialization capabilities by allowing you to pass additional context during deserialization.


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

~0.3–1MB
~22K SLoC