Expand description
Provides the config module.
§Examples
ⓘ
use pharos_native::config;§Related
crate::runtimefor consumers that load shared runtime configuration.
Structs§
- AppLocal
Config - Resolved app-local config values loaded from
app.conf. - AppRuntime
- Fully resolved runtime configuration for one mounted app.
- Resource
Budgets - Runtime resource ceilings applied to responses, queries, jobs, and integrations.
- Serve
Config - Parsed top-level runtime launch configuration.
Constants§
- MODULE_
STATUS - Implementation status marker for the shared config module.
Functions§
- app_
artifact_ dir_ from_ build_ dir - Performs app artifact dir from build dir.
- app_
base_ path_ local - Performs app base path local.
- app_
build_ dir_ local - Performs app build dir local.
- app_
error_ report_ path_ local - Performs app error report path local.
- app_
local_ conf_ path - Returns the
app.confpath for an app when the file exists. - app_
local_ conf_ value - Performs app local conf value.
- app_
log_ format_ local - Performs app log format local.
- app_
log_ level_ explicit - Performs app log level explicit.
- app_
log_ level_ local - Performs app log level local.
- app_
log_ path_ local - Performs app log path local.
- app_
media_ root - Resolves configured app media storage, retaining bundled storage for legacy apps. Configured paths must be absolute after config-relative resolution and cannot traverse parents.
- app_
state_ path_ local - Performs app state path local.
- apply_
serve_ config_ defaults_ from_ conf - Performs apply serve config defaults from conf.
- clone_
app - Clones one resolved runtime configuration.
- duplicate_
config_ field - Performs duplicate config field.
- dynamic_
config_ effective_ value - Performs dynamic config effective value.
- dynamic_
config_ key_ is_ path - Performs dynamic config key is path.
- dynamic_
config_ lookup_ raw - Performs dynamic config lookup raw.
- dynamic_
config_ resolve_ value - Performs dynamic config resolve value.
- dynamic_
config_ value_ is_ set - Performs dynamic config value is set.
- effective_
app_ artifact_ dir - Performs effective app artifact dir.
- effective_
app_ base_ path - Performs effective app base path.
- effective_
app_ build_ dir - Performs effective app build dir.
- effective_
app_ error_ report_ path - Performs effective app error report path.
- effective_
app_ log_ format - Performs effective app log format.
- effective_
app_ log_ level - Performs effective app log level.
- effective_
app_ log_ path - Performs effective app log path.
- effective_
app_ state_ path - Performs effective app state path.
- finalize_
loaded_ app - Performs finalize loaded app.
- find_
app_ root_ for_ target - Finds an app root by checking the explicit app directory, repository root, and binary-relative app directories.
- free_
app_ local_ config - Clears an app-local configuration value without retaining owned strings.
- free_
serve_ config - Clears an owned serve configuration in the same way as dropping a parsed value.
- load_
app_ local_ config - Loads app local config.
- match_
app_ root_ in_ directory - Finds an app root in one directory tree by matching
app_idfrom the manifest. - normalize_
base_ path - Normalizes base path.
- parse_
serve_ config - Parses serve config.
- path_
last_ segment_ is_ apps_ runtime_ local - Tests whether the final path component is the protected runtime directory.
- resolve_
conf_ relative_ path - Resolves a config value relative to the config file that declared it.
- resolve_
relative_ artifact_ dir_ runtime_ local - Resolves an artifact directory relative to a build directory while preserving
dist/apps. - resolved_
runtime_ conf_ path_ from_ config - Performs resolved runtime conf path from config.
- skip_
leading_ apps_ segment_ runtime_ local - Skips a leading
appspath component without allowing traversal.