Skip to main content

signstar_host/
config.rs

1//! Configuration handling.
2
3use signstar_config::config::Config;
4
5use crate::Error;
6
7/// Loads the Signstar configuration from the default system paths.
8///
9/// # Errors
10///
11/// Returns an error, if [`Config::from_system_path`] fails.
12pub fn load_config() -> Result<Config, Error> {
13    Ok(Config::from_system_path().map_err(Box::new)?)
14}