//! Runs `{{ app }}` as a server of its own when it is separate
//! (`embed = false` in config/apps.toml; `slave serve` starts it and the
//! runtime proxies to it). Otherwise the runtime serves it in-process (see
//! `lib.rs`).
use std::process::ExitCode;
#[tokio::main]
async fn main() -> ExitCode {
match {{ crate_name }}::serve().await {
Ok(()) => ExitCode::SUCCESS,
Err(err) => {
eprintln!("error: {err}");
ExitCode::FAILURE
}
}
}