Skip to main content

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 [Turso Cloud](https://turso.tech) database
7//! ([`database`]) with schema migrations ([`migration`]), and with the default
8//! `oidc` feature, sign-in through an OpenID Connect provider ([`oidc`]): the
9//! app verifies the provider's ID tokens and never handles passwords. The
10//! `testing` feature adds a test database and a test identity provider.
11
12#[cfg(feature = "database")]
13pub mod database;
14pub mod env;
15mod error;
16pub mod logging;
17#[cfg(feature = "database")]
18pub mod migration;
19#[cfg(feature = "oidc")]
20pub mod oidc;
21pub mod server;
22#[cfg(feature = "testing")]
23pub mod testing;
24
25pub use error::{Error, Result};
26#[cfg(feature = "database")]
27pub use libsql;