Crates.io | confyg |
lib.rs | confyg |
version | 0.2.0 |
source | src |
created_at | 2022-11-13 19:05:13.364934 |
updated_at | 2023-03-11 06:36:13.798469 |
description | A simple, TOML-based, ENV-enabled library that can find and merge configs |
homepage | |
repository | https://github.com/oxur/confyg |
max_upload_size | |
id | 714443 |
size | 61,968 |
A simple, TOML-based, ENV-enabled library that can find and merge configs
Be sure to see the examples (and the Makefile, for how to run some of them with environment variables set).
Note that due to the fact that environment variables don't support the use of the .
in variable names, the toml
library's hierarchichal feature is not usable when you want to merge environment-based configs and string- or file-based configs with sections that have .
in their names. You can get around this to a certain extent with underscores and switching up how you relate your Rust structs to sections (see the ./examples/env*
examples).
Copyright © 2022, Oxur Group
Apache License, Version 2.0