Skip to main content

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 api_error;
8pub mod app;
9pub mod auth_contract;
10pub mod backend;
11pub mod backup;
12pub mod check;
13pub mod cli;
14pub mod cors;
15pub mod db;
16pub mod errors;
17pub mod fixtures;
18pub mod forms;
19pub(crate) mod hosts;
20pub mod inspect;
21pub mod middleware;
22pub mod migrate;
23pub mod orm;
24pub mod pagination;
25pub mod plugin;
26pub mod ratelimit;
27pub mod routes;
28pub mod settings;
29pub mod signals;
30pub mod slash;
31pub mod static_files;
32pub mod storage;
33pub mod templates;
34pub mod timezone;
35pub mod web;
36
37/// Top-level transaction helper. Sugar for `umbral_core::db::transaction`.
38///
39/// Exposes `umbral_core::transaction(|tx| async { ... })` at the crate root
40/// so the facade re-export becomes `umbral::transaction(...)`.
41pub use db::{transaction, transaction_pg, transaction_sqlite};
42
43/// Re-export of `sea_query` for use in macro-generated code.
44///
45/// The `#[derive(Model)]` macro emits `::umbral::_sea_query::Value` in the
46/// `HydrateRelated::write_pending_m2m` body (form-staged M2M junction
47/// writes). Routing through this re-export means user crates don't need a
48/// direct `sea-query` dep for the generated code to compile.
49#[doc(hidden)]
50pub use sea_query as _sea_query;