kasl_server/lib.rs
1//! kasl-server as a library.
2//!
3//! The binary is a thin wrapper: configuration, a pool, migrations, then
4//! `app::router`. Everything else lives here so integration tests can drive
5//! the real router and the real provisioning path instead of a copy that
6//! drifts from what ships.
7
8pub mod admin;
9pub mod alerts;
10pub mod app;
11pub mod audit;
12pub mod auth;
13pub mod backup;
14pub mod calendar;
15pub mod config;
16pub mod demo;
17pub mod department;
18pub mod error;
19pub mod heartbeat;
20pub mod heatmap;
21pub mod import;
22pub mod ingest;
23pub mod login;
24pub mod me;
25pub mod model;
26pub mod notifications;
27pub mod privacy;
28pub mod provision;
29pub mod session;
30pub mod signals;
31pub mod team;
32pub mod web;
33pub mod webhooks;
34
35/// The embedded migrations, applied on startup and by the tests.
36///
37/// Declared here rather than at each call site so there is one answer to "what
38/// schema does this build carry" - the binary and the test suite cannot end up
39/// migrating differently.
40pub fn migrator() -> sqlx::migrate::Migrator {
41 sqlx::migrate!()
42}