-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Forward other derives to the partial type? #17
Comments
I really like to print the final merged config and how it was composed from it's partial configs, but having neither |
+1 to this one, not having Aside from this I've been really happy with confique though. I used figment before but really love having the partial config object. It makes integrating it into an existing highly complex configuration struct much, much easier. |
I just pushed a commit that adds #[derive(Config)]
#[config(partial_attr(derive(Clone)))]
struct Conf { ... } And the partial type will get It would be great if any of you could test that to see if it solves your problem. |
Debug works! thank you! |
Neat! Will release in the coming days. Just looking for more stuff to lump into that release. |
Released as v0.2.5
Thanks for this experience report by the way! It's always great to hear others getting value out of my work, but especially so in this case: when researching configuration libraries and when I concluded that I didn't like any of the existing ones, I somehow missed |
We cannot see other derives, only in special circumstances. Thus we probably want
#[config(derive_for_partial = Debug)]
or sth.Maybe a more general attribute forward? Or just derive
Debug
and nothing else?The text was updated successfully, but these errors were encountered: