slave_framework/lib.rs
1//! Runtime for applications built with the [slave](https://github.com/kewcoder/slave) framework.
2//!
3//! Generated applications depend on this crate for the pieces every app needs:
4//! environment configuration ([`env`]), structured logging ([`logging`]), an
5//! HTTP server with graceful shutdown ([`server`]) and, with the default
6//! `database` feature, a [SurrealDB](https://surrealdb.com) connection and
7//! SurrealQL migrations ([`database`]), and with the default `auth`
8//! feature, passwordless sign-in ([`auth`]): one-time codes by email,
9//! passkeys and server-side sessions. The `testing` feature adds a test
10//! database.
11
12#[cfg(feature = "auth")]
13pub mod auth;
14#[cfg(feature = "database")]
15pub mod database;
16pub mod env;
17mod error;
18pub mod logging;
19pub mod server;
20#[cfg(feature = "testing")]
21pub mod testing;
22
23pub use error::{Error, Result};
24#[cfg(feature = "database")]
25pub use surrealdb;