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

Function load_config_figment

gateway/src/config.rs:304–306  ·  view source on GitHub ↗
(config_file: Option<&str>)

Source from the content-addressed store, hash-verified

302
303pub const DEFAULT_CONFIG: &str = include_str!("../gateway.toml");
304pub fn load_config_figment(config_file: Option<&str>) -> Figment {
305 load_config("gateway", DEFAULT_CONFIG, config_file, false)
306}
307
308pub fn setup_wireguard(config: &WgConfig) -> Result<()> {
309 config.validate().context("Invalid wireguard config")?;

Callers 2

mainFunction · 0.70
create_test_stateFunction · 0.50

Calls 1

load_configFunction · 0.50

Tested by 1

create_test_stateFunction · 0.40