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 app;
10pub mod audit;
11pub mod auth;
12pub mod backup;
13pub mod config;
14pub mod demo;
15pub mod department;
16pub mod error;
17pub mod heartbeat;
18pub mod heatmap;
19pub mod import;
20pub mod ingest;
21pub mod login;
22pub mod me;
23pub mod model;
24pub mod privacy;
25pub mod provision;
26pub mod session;
27pub mod signals;
28pub mod team;
29pub mod web;
30
31/// The embedded migrations, applied on startup and by the tests.
32///
33/// Declared here rather than at each call site so there is one answer to "what
34/// schema does this build carry" - the binary and the test suite cannot end up
35/// migrating differently.
36pub fn migrator() -> sqlx::migrate::Migrator {
37 sqlx::migrate!()
38}