LukasKalbertodt / confique

Type-safe, layered, light-weight, `serde`-based configuration library
https://docs.rs/confique
Apache License 2.0
167 stars 12 forks source link

Express dependencies between fields via attributes (e.g. `requires = "other_field"`) #14

Open LukasKalbertodt opened 1 year ago

LukasKalbertodt commented 1 year ago

This can be done in clap for example. Might be nice to express sth like that with attributes and have it checked automatically. However, it would increase the scope of this library considerably and it's straight forward to add such a check in your code afterwards.