Writing a Hashmap-to-Struct Procedural Macro in Rust

from blog cprimozic.net Blog, | ↗ original
ex0dus-0x has built a more complete library based off of this post that supports conversion both ways, check it out! https://github.com/ex0dus-0x/structmap In one of my projects, I recently had the need to take a HashMap filled with settings and configuration options and use it to populate the fields of a struct. If a certain setting wasn't in...