Skip to main content

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 privacy;
27pub mod provision;
28pub mod session;
29pub mod signals;
30pub mod team;
31pub mod web;
32pub mod webhooks;
33
34/// The embedded migrations, applied on startup and by the tests.
35///
36/// Declared here rather than at each call site so there is one answer to "what
37/// schema does this build carry" - the binary and the test suite cannot end up
38/// migrating differently.
39pub fn migrator() -> sqlx::migrate::Migrator {
40    sqlx::migrate!()
41}