serde-rs / serde

Serialization framework for Rust
https://serde.rs/
Apache License 2.0
8.82k stars 748 forks source link

Implement `#[key = ...]` #2698

Open jun-sheaf opened 4 months ago

jun-sheaf commented 4 months ago

This PR implements the ability to use a limited set of literals for keys when serializing and deserializing structs. The motivation is written in https://github.com/serde-rs/serde/issues/2695.

Closes https://github.com/serde-rs/serde/issues/2695

Limitations