config-rs icon indicating copy to clipboard operation
config-rs copied to clipboard

Can ENV not be forced to lowercase? Or Case could add a support for converting to AA_BB instead of AA BB

Open Zzaniu opened this issue 9 months ago • 0 comments

let mut key = key.to_lowercase() Because I see that ENV is forced to be lowercased here, if my struct is renamed to uppercase and underscored, the ENV parsing will fail consistently. I tried using convert_case(config::Case::Upper) but it fails if there is an underscore. Now in order to support env, I have to make it all lowercase and underlined.

Zzaniu avatar Jul 22 '25 07:07 Zzaniu