MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / load_config_figment

Function load_config_figment

supervisor/src/main.rs:21–23  ·  view source on GitHub ↗
(config_file: Option<&str>)

Source from the content-addressed store, hash-verified

19pub const DEFAULT_CONFIG: &str = include_str!("../supervisor.toml");
20
21pub fn load_config_figment(config_file: Option<&str>) -> Figment {
22 load_config("supervisor", DEFAULT_CONFIG, config_file, true)
23}
24
25fn app_version() -> String {
26 const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");

Callers 1

async_mainFunction · 0.70

Calls 1

load_configFunction · 0.50

Tested by

no test coverage detected