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