dtolnay / dtolnay/serde-stacker

Give example of how to use `serde_stacker` in implementation of `Deserialize` trait

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
38
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I ran into a deserialization problem that I solved using `serde_stacker`, but I don't know how to use my code to replace the regular, derived, `Deserialize` implementation. I imagine that it should be possible, since the `serde_stacker` deserializer can just be created inside the `deserialize` function and the return type `Result` can be returned. In other words: There shouldn't be anything in the `deserialize` function signature to prevent it from using `serde_stacker` internally.

Cf. these two Stack Exchange questions:
https://stackoverflow.com/questions/72621410/how-do-i-use-serde-stacker-in-my-deserialize-implementation
https://stackoverflow.com/questions/72618777/how-to-deserialize-a-nested-big-array

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.