ogre-config-meld

Crates.ioogre-config-meld
lib.rsogre-config-meld
version0.1.6
created_at2025-07-21 04:51:20.401383+00
updated_at2025-11-02 03:39:35.536952+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
size63,279
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. Config file encryption is supported through encryptable-tokio-fs
  5. CLI options are meant to override any configs specified in files.
  6. 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.
  • Include the Rust docs alongside the the default config files

NOTE: the currently recommended way of using encryptable-tokio-fs in your project is through the re-export we do of it in this crate -- it is the most effective way both will use the same version.

Commit count: 8

cargo fmt