3Hren / 3Hren/msgpack-rust

rmp_serde: serialize and deserialize MessagePack extensions

Open
#182 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.4k
Forks
162
PR merge metrics
No merged PRs in 30d

Description

The `toml` crate has a trick for this. Their `serialize_struct` recognises their built-in `datetime` type by name, and delegates to a specialised serializer:
https://github.com/alexcrichton/toml-rs/blob/c1a369f44762045e65989caa9491e153d1f358e6/src/ser.rs#L949-L952

Likewise to deserialize:
https://github.com/alexcrichton/toml-rs/blob/c1a369f44762045e65989caa9491e153d1f358e6/src/de.rs#L582-L589

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.