mistodon / config_struct

Deprecated: Use https://github.com/mistodon/edres instead.
19 stars 2 forks source link

Add functions to conditionally load the config from disk or return the const struct #1

Closed mistodon closed 6 years ago

mistodon commented 6 years ago

I find myself continually writing functions to parse the config in debug mode, and return the constant in release mode.

Would be good to build this in, maybe behind a feature.

mistodon commented 6 years ago

Done: https://docs.rs/config_struct/0.2.0/config_struct/struct.Options.html#structfield.generate_load_fns