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 app;
9pub mod auth;
10pub mod config;
11pub mod error;
12pub mod import;
13pub mod ingest;
14pub mod model;
15pub mod provision;
16
17/// The embedded migrations, applied on startup and by the tests.
18///
19/// Declared here rather than at each call site so there is one answer to "what
20/// schema does this build carry" - the binary and the test suite cannot end up
21/// migrating differently.
22pub fn migrator() -> sqlx::migrate::Migrator {
23    sqlx::migrate!()
24}