oxidetalis/crates/oxidetalis_config
Awiteb 4780d049d4
All checks were successful
DCO checker / DCO checker (pull_request) Successful in 3s
Rust CI / Rust CI (pull_request) Successful in 4m54s
chore: Update the copyright
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-20 16:32:19 +03:00
..
src chore: Update the copyright 2024-07-20 16:32:19 +03:00
Cargo.toml chore: Initialize the project 2024-06-26 23:05:17 +03:00
README.md chore: Initialize the project 2024-06-26 23:05:17 +03:00

Oxidetalis configurations

A library for managing configurations of Oxidetalis homeserver.

Key Features

  • Load and write configurations: Load configurations from a file and write configurations to a file.
  • Multiple configuration entries: The configurations are collected from CLI arguments, environment variables, and configuration files.
  • Configuration validation: Validate the configurations before using them.
  • Configuration defaults: Set default values for configurations.

Must to know

  • The configurations are loaded in the following order (from highest priority to lowest priority)
    1. Command-line options
    2. Environment variables
    3. Configuration file
    4. Default values (or ask you to provide the value)
  • The configurations are written to the configuration file every time you run the server, even if you don't change any configuration. This is to ensure that the configuration file is always up-to-date.

License

This crate is licensed under the MIT license.