Module config

Module config 

Source
Expand description

Configuration management for AT Protocol identity operations.

Environment variable utilities, DNS nameserver configuration, and TLS certificate bundle management with structured error handling.

Structs§

CertificateBundles
Certificate bundle paths for TLS verification. Contains a collection of file paths to certificate bundles.
DnsNameservers
DNS nameserver IP addresses for domain resolution. Contains a collection of IP addresses for custom DNS resolution.

Functions§

default_env
Gets an environment variable value with a fallback default. Returns the default value if the variable is not set.
optional_env
Gets an optional environment variable value. Returns empty string if the variable is not set.
require_env
Gets a required environment variable value. Returns an error if the variable is not set.
version
Gets the application version from git hash or package version. Returns the git hash if available, otherwise falls back to cargo package version.