-
Hello. I know I can set a default settings file up, then overlay it with another file, but how can I hard-code defaults in and then override with env or settings files? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Have you looked at |
Beta Was this translation helpful? Give feedback.
-
I did! I found it a few hours after I posted this but I've forgotten to come back since. It's working nicely. It was a bit confusing at first when trying to do a custom type since I was getting weird deserialization errors but kpreid on rust discord suggested I build my type in the default with the same primitive I'd built my actual with and the system should "deserialize" it too. Worked great. Weird, but great. Thanks for getting back! |
Beta Was this translation helpful? Give feedback.
Have you looked at
ConfigBuilder::set_default
?