Motivation
Upon writing some rusty code for CLI config management, I simply declared a struct like this:
Also, in order to have set function with proper typed selection, I declared another enum named Field:
The thing is, I wanted to automate creation of enum generation. Ordinary macros wouldn't be a good viable solution, so I wrote maydon from ground up. I might be missing something or prequisites, but this is what I came up with:
use Maydon;
// The macro should generate:
License
This project is licensed under the MIT or Apache-2.0 license - see the LICENSE-MIT or LICENSE-APACHE file for details.