1pub mod actions;
12pub mod auth;
13pub mod authz;
14pub mod csrf;
15pub mod error;
16pub mod export;
17pub mod filters;
18pub mod menu;
19pub mod mfa;
20pub mod ratelimit;
21pub mod registry;
22pub mod request;
23pub mod resource;
24pub mod response;
25pub mod storage;
26pub mod ui;
27
28pub use actions::{ActionFuture, ActionHandler, CustomAction};
29pub use auth::AuthConfig;
30pub use authz::{authorizer, set_authorizer, Action, Authorizer};
31pub use error::CoreError;
32pub use filters::{FilterField, FilterKind, FilterOption};
33pub use menu::{MenuAction, MenuItem};
34pub use registry::{all_resources, get_registered_menus, register_resource};
35pub use request::{Claims, ReqCtx};
36pub use resource::Resource;
37pub use response::{ApiBody, ApiResponse};
38pub use ui::set_tailwind_src;
39pub use storage::{
40 seed, set_storage, storage, CreateOutcome, ListPage, QueryOptions, Storage, StorageError,
41};
42
43pub const VERSION: &str = env!("CARGO_PKG_VERSION");
44
45pub mod prelude {
47 pub use crate::actions::{ActionFuture, CustomAction};
48 pub use crate::auth::{configure as configure_auth, create_admin, AuthConfig};
49 pub use crate::authz::{set_authorizer, Action, Authorizer};
50 pub use crate::error::CoreError;
51 pub use crate::filters::{FilterField, FilterKind, FilterOption};
52 pub use crate::registry::{all_resources, register_resource};
53 pub use crate::request::{Claims, ReqCtx};
54 pub use crate::resource::Resource;
55 pub use crate::response::{ApiBody, ApiResponse};
56 pub use crate::storage::{seed, set_storage, storage, QueryOptions, Storage};
57}