Skip to content

config

Structs

  • StackConfig - Configuration needed to boot the authority and sidecar as one unit.

Functions


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. When None,
  • config_file: std::path::PathBuf - The single unified firma.toml shared by both components.
  • firma_bin: Option<std::path::PathBuf> - Optional path to the firma binary 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

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.

Returns [StackError::ConfigRead] when no firma.toml can be resolved.

fn resolve_stack_config(cli_override: Option<&std::path::Path>) -> crate::error::Result<StackConfig>