6 releases

0.1.4 Mar 17, 2024
0.1.3 Mar 15, 2024
0.1.2 Feb 3, 2024
0.1.0 Jan 31, 2024
0.0.0 Dec 23, 2023

#913 in Encoding

30 downloads per month

MIT license

44KB
1K SLoC

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

Dependencies

~4–6.5MB
~93K SLoC