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

feat(env): underscore field nesting for single `_` separators

Open aleris opened this issue 3 months ago • 3 comments

Allow to nest with single _ even when field names contain underscores via .underscore_nesting(true)``. Can be used when field names also have _` with environment overrides. Can be used as an alternative for double underscore separator '__' for nesting. Supports deep nesting. Is off by default.

aleris avatar Oct 08 '25 06:10 aleris

Note that our contributing guide asks to start with Issues, rather than PRs. Moving this to a Draft until there is a mutual understanding and agreement on the problem and the solution.

epage avatar Oct 08 '25 13:10 epage

Ah, ok, thanks, will follow up. Regarding starting with issues, maybe would help to change the language to be more explicit instead of current "it is probably best" and "It might be good" which suggest is rather optional (or I least this is how I read it). https://github.com/rust-cli/config-rs/blob/main/CONTRIBUTING.md#pull-requests

aleris avatar Oct 08 '25 15:10 aleris

added https://github.com/rust-cli/config-rs/issues/704

aleris avatar Oct 08 '25 16:10 aleris