Expand description
A collection of common configuration primitives and utilities used throughout the scsys-io ecosystem.
Re-exports§
pub use config;
Modules§
- consts
- constants declared for the configuration module
- error
- the
error
module defines the error-handling routines for the crate - prelude
- services
- the
services
module provides pre-defined schemas for common services - traits
- this module is used to implement various traits supporting the configuration module
- types
- various types used throughout the configuration module
- utils
Macros§
- config_
sources - create a macro to streamline the process of adding sources
Structs§
- Database
UriSchema - A standard database connection url schema
- Environment
Iter - An iterator over the variants of Environment
- LogLevel
Iter - An iterator over the variants of LogLevel
- Logger
Config - Mode
Iter - An iterator over the variants of Mode
- Network
Addr - Network
Config - Scope
- The
Scope
struct is a two-part pathlike structure intendend to be used as a configurable mechanism to defining the context and working directory of a service. - Standard
Database Config - The
StandardDatabaseConfig
type is a configuration structure for a standard database connection. - Tracing
Config
Enums§
- Config
Error - Environment
- LogLevel
- Mode
- Mode enumerates the possible runtime modes of the application.
Constants§
- ARTIFACTS
- The standard artifacts directory name
- CACHE_
DIR - The standard cache directory name
- CONFIG_
DIR - The standard configuration directory name
- DEFAULT_
ENV_ PREFIX - The default environment variable prefix used for configuration schemas.
- DEFAULT_
ENV_ SEPARATOR - The default environment variable separator used for configuration schemas.
Traits§
- Configurable
Configurable
trait for types that can be configured with another type, denoted by Configurable::Config.- Configuration
Configuration
is used to establish a common interface for all configuration types.- RawConfiguration
- The
RawConfiguration
trait defines the base representation format for all configuration schemas.
Functions§
- collect_
files_ as - A generic function wrapper extending glob::glob
- env_
or_ default - a utility function to get an environment variable or return a default value