Skip to main content

Module config

Module config 

Source
Expand description

Provides the config module.

§Examples

ⓘ
use pharos_native::config;
  • crate::runtime for consumers that load shared runtime configuration.

Structs§

AppLocalConfig
Resolved app-local config values loaded from app.conf.
AppRuntime
Fully resolved runtime configuration for one mounted app.
ResourceBudgets
Runtime resource ceilings applied to responses, queries, jobs, and integrations.
ServeConfig
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.conf path 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_id from 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 apps path component without allowing traversal.