ogre-config-meld

Crates.ioogre-config-meld
lib.rsogre-config-meld
version0.1.2
created_at2025-07-21 04:51:20.401383+00
updated_at2025-09-18 06:47:13.415131+00
descriptionMelds configs from files, env, and CLI into a clean, validated strong typed 'effective configuration'.
homepagehttps://github.com/zertyz/ogre-config-meld
repositoryhttps://github.com/zertyz/ogre-config-meld
max_upload_size
id1761699
size54,813
Luiz Silveira (zertyz)

documentation

https://docs.rs/ogre-config-meld/

README

Melds configs from files, env, and CLI into a clean, validated strong typed "effective configuration".

This crate is still in an experimental stage for providing the following distinctive features:

  1. Configs are saved and loaded from files, alongside with their docs.
  2. The config file is created if one doesn't exist. Default values are filled in.
  3. Different config file formats are supported. Currently, YAML and RON.
  4. CLI options are meant to override any configs from files.
  5. However, the CLI models are first-class object, as they may contain options not suitable for a configuration file, such as specifying "where the config file is located at".

Still missing:

  • ENV integration not fully implemented.
  • Validation of the given config values. Not only in isolation.
Commit count: 8

cargo fmt