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
//! The application as a library, shared by its binaries: the MCP server
//! (`src/main.rs`), the migration tool (`src/bin/migrate.rs`) and the
//! runtime (`runtime/`).

pub mod app;
pub mod base;
pub mod modules;

/// Connects to the database (`SURREAL_*` settings).
pub async fn database(
    config: &slave_framework::database::DatabaseConfig,
) -> slave_framework::Result<slave_framework::database::Db> {
    slave_framework::database::connect(config).await
}