Crate confucius

Crate confucius 

Source
Expand description

§Confucius

“Constancy is the virtue by which all other virtues bear fruit.” - Confucius

Just as Confucius provided wisdom for life, Confucius provides wisdom for configuring your applications.

confucius is a library for managing configuration files with support for:

  • Automatic search for configuration files in standard paths
  • Support for different formats (.ini, .toml, .yaml, .json)
  • Include mechanism for multiple files
  • Format identification through shebang (#!config/FORMAT)
  • Support for comments and text values

Re-exports§

pub use validation::*;

Modules§

ini
Implementation of the parser and writer for the INI format.
json
Implementation of the parser and writer for the JSON format.
toml
Implementation of the parser and writer for the TOML format.
validation
Module for configuration validation
yaml
Implementation of the parser and writer for the YAML format.

Structs§

Config
Represents the main structure for configuration management.

Enums§

ConfigError
Errors that can occur during configuration management.
ConfigFormat
Supported configuration file formats.
ConfigValue
Represents a configuration value.