mirror of
https://github.com/telemt/telemt.git
synced 2026-09-15 23:14:09 +03:00
18 lines
609 B
Rust
18 lines
609 B
Rust
use super::*;
|
|
|
|
pub(super) fn load_source_graph(graph: ConfigSourceGraph) -> Result<LoadedConfig> {
|
|
let (mut config, source_files, source_contents, processed) =
|
|
decode::decode_source_graph(graph)?;
|
|
validate_core::validate(&mut config)?;
|
|
validate_runtime::validate(&mut config)?;
|
|
validate_me::validate(&mut config)?;
|
|
validate_server::validate(&mut config)?;
|
|
effective::apply(&mut config)?;
|
|
Ok(LoadedConfig {
|
|
config,
|
|
source_files: source_files.into_iter().collect(),
|
|
source_contents,
|
|
rendered_hash: hash_rendered_snapshot(&processed),
|
|
})
|
|
}
|