config
Module: config
Section titled “Module: config”Contents
Section titled “Contents”Structs
StackConfig- Configuration needed to boot the authority and sidecar as one unit.
Functions
resolve_stack_config- Resolve the unified config for the stack.
firma_stack::config::StackConfig
Section titled “firma_stack::config::StackConfig”Struct
Configuration needed to boot the authority and sidecar as one unit.
config_file is the single resolved firma.toml; both children are
spawned with --config <config_file> so the parent and children
always read the exact same file.
Fields:
state_dir: Option<std::path::PathBuf>- Optional override for the runtime state directory. WhenNone,config_file: std::path::PathBuf- The single unifiedfirma.tomlshared by both components.firma_bin: Option<std::path::PathBuf>- Optional path to thefirmabinary used to spawn children. When
Trait Implementations:
- Clone
fn clone(self: &Self) -> StackConfig
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
firma_stack::config::resolve_stack_config
Section titled “firma_stack::config::resolve_stack_config”Function
Resolve the unified config for the stack.
cli_override is the explicit --config flag (if any); otherwise the
firma-config discovery precedence is used.
Errors
Section titled “Errors”Returns [StackError::ConfigRead] when no firma.toml can be
resolved.
fn resolve_stack_config(cli_override: Option<&std::path::Path>) -> crate::error::Result<StackConfig>