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 [Toasty](https://github.com/tokio-rs/toasty) database
7//! on PostgreSQL ([`database`]), 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 = "oidc")]
18pub mod oidc;
19pub mod server;
20#[cfg(feature = "testing")]
21pub mod testing;
22
23pub use error::{Error, Result};
24#[cfg(feature = "database")]
25pub use toasty;