umbral_core/lib.rs
1//! umbral internals: ORM, migrations, routing, DB backends, the Plugin trait.
2//!
3//! Do not depend on this crate directly. Use the `umbral` facade.
4//!
5//! Status: M0 shipped — Settings, db pool, web re-exports, App builder.
6
7pub mod app;
8pub mod auth_contract;
9pub mod backend;
10pub mod backup;
11pub mod check;
12pub mod cli;
13pub mod cors;
14pub mod db;
15pub mod errors;
16pub mod fixtures;
17pub mod forms;
18pub(crate) mod hosts;
19pub mod inspect;
20pub mod middleware;
21pub mod migrate;
22pub mod orm;
23pub mod pagination;
24pub mod plugin;
25pub mod ratelimit;
26pub mod routes;
27pub mod settings;
28pub mod signals;
29pub mod slash;
30pub mod static_files;
31pub mod storage;
32pub mod templates;
33pub mod timezone;
34pub mod web;
35
36/// Top-level transaction helper. Sugar for `umbral_core::db::transaction`.
37///
38/// Exposes `umbral_core::transaction(|tx| async { ... })` at the crate root
39/// so the facade re-export becomes `umbral::transaction(...)`.
40pub use db::{transaction, transaction_pg, transaction_sqlite};
41
42/// Re-export of `sea_query` for use in macro-generated code.
43///
44/// The `#[derive(Model)]` macro emits `::umbral::_sea_query::Value` in the
45/// `HydrateRelated::write_pending_m2m` body (form-staged M2M junction
46/// writes). Routing through this re-export means user crates don't need a
47/// direct `sea-query` dep for the generated code to compile.
48#[doc(hidden)]
49pub use sea_query as _sea_query;