Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust proc_macro for config structs #246

Open
brayniac opened this issue May 26, 2020 · 0 comments
Open

rust proc_macro for config structs #246

brayniac opened this issue May 26, 2020 · 0 comments
Assignees

Comments

@brayniac
Copy link
Contributor

Add a proc_macro for the config structs (eg: ccommon-stream, ccommon-debug, ...)

Problem

In #245 we added configuration structs for the ccommon components, however there is a significant amount of boilerplate.

Solution

I propose adding a proc_macro for generating code to reduce the boilerplate. It should be possible to define the overall configuration struct, with its default values in one location and let the proc_macro expand that out to a complete struct definition, accessors, and corresponding serde annotations.

@brayniac brayniac self-assigned this May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant