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

Function main

guest-agent/src/main.rs:22–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21#[rocket::main]
22async fn main() -> Result<()> {
23 {
24 use tracing_subscriber::{fmt, EnvFilter};
25 let filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info"));
26 fmt().with_env_filter(filter).with_ansi(false).init();
27 }
28 let args = Args::parse();
29 let figment = config::load_config_figment(args.config.as_deref());
30 let state = AppState::new(figment.focus("core").extract()?)
31 .await
32 .context("Failed to create app state")?;
33 run_server(state, figment, args.watchdog).await
34}

Callers

nothing calls this directly

Calls 1

load_config_figmentFunction · 0.70

Tested by

no test coverage detected