mehcode / config-rs

⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
Apache License 2.0
2.43k stars 206 forks source link

deserialize: strings: Introduce string_serialize_via_display macro #489

Closed ijackson closed 8 months ago

ijackson commented 8 months ago

This removes a lot of duplicated code.

It could be even shorter if we were to use the paste crate.

(I'm sending these refactorings in separate MRs since it seems easier to deal with them separately that way.)