mirror of
https://github.com/telemt/telemt.git
synced 2026-09-05 18:16:06 +03:00
1029703c2c
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com> Co-Authored-By: John Preston <17900494+john-preston@users.noreply.github.com>
19 lines
651 B
Rust
19 lines
651 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)?;
|
|
validate_web::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),
|
|
})
|
|
}
|