tide_rs
Introduction
tide_rs is a flexible config parser for Rust, designed to handle the TIDE configuration format. It provides an easy-to-use API for accessing configuration values from TIDE files.
See TIDE for more information on the TIDE configuration format.
[!IMPORTANT]
This is no more than a hobby project at the moment. I have always been curious about the design and implementation of configuration frameworks, and this is my attempt at creating one. I am not sure if this will ever be used, but I am hoping to learn a bit more about the whole deal of configuration handling. If you are interested in this project, please feel free to contribute or provide feedback.
Usage
Add the following to your Cargo.toml file:
[]
= "0.1.0"
Example
use TIDE;
use ConfigValue;
Environment variables
TIDE configuration values can be overridden by environment variables. The environment variable name is the uppercased path to the configuration value, with the path separator replaced by an underscore.
For example database.credentials.username would be overridden by the
DATABASE_CREDENTIALS_USERNAME environment variable.
Example
An example of using tide_rs to parse a TIDE file, is available in the examples directory.
Contributing
Contributions are welcome. Please feel free to open an issue or submit a pull request.