MCPcopy Index your code
hub / github.com/Rust-Web-Development/code / main

Function main

ch_11/src/bin/server.rs:5–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4#[tokio::main]
5async fn main() -> Result<(), handle_errors::Error> {
6 dotenvy::dotenv().ok();
7
8 let config = config::Config::new().expect("Config can't be set");
9 let store = setup_store(&config).await?;
10
11 tracing::info!("Q&A service build ID {}", env!("RUST_WEB_DEV_VERSION"));
12
13 run(config, store).await;
14
15 Ok(())
16}

Callers

nothing calls this directly

Calls 2

setup_storeFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected