slave 0.13.1

CLI for slave, a Laravel-inspired Rust framework for MCP-first apps: scaffold an MCP backend with auth, roles, teams and SurrealDB migrations, add server-rendered web apps, and route them by domain or path
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! 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
        }
    }
}