configrs

Crates.ioconfigrs
lib.rsconfigrs
version0.1.4
sourcesrc
created_at2023-12-23 03:17:55.63933
updated_at2024-03-17 10:49:00.451683
descriptionConfiguration library
homepage
repositoryhttps://github.com/mfirhas/configrs
max_upload_size
id1078814
size225,088
Muhammad Fathir Irhas (mfirhas)

documentation

README

configrs

Configuration Library in Rust.

Features:

  • Load environment variables from OS Env into User Data Types(struct, enum).
  • Load and merge configuration data from multiple sources: JSON, YAML, .env file, and TOML
  • Interop with serde for user's types annotations for deserializing configurations data.
  • Filter configs from os env and .env file with prefix(case sensitive).
  • Add overwrite mechanism for optional sources when existing config values need to be overwritten by new ones.
  • Add configs values from hard-coded values.
  • More features soon...

See example for samples.

License: MIT

Commit count: 0

cargo fmt