oxidetalis/crates/oxidetalis_config
Awiteb ec0ec98ae6
All checks were successful
DCO checker / DCO checker (pull_request) Successful in 2s
Rust CI / Rust CI (pull_request) Successful in 4m8s
change: Use Scalar as default openapi UI
Signed-off-by: Awiteb <a@4rs.nl>
2024-07-18 12:36:40 +03:00
..
src change: Use Scalar as default openapi UI 2024-07-18 12:36:40 +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.