mod abort;
pub mod config_env;
mod config_helper;
pub mod date;
mod html;
mod loop_iter;
mod redirect;
pub mod regex_replace;
pub mod strings;
pub mod truthy;
mod url_helper;
pub mod vitex;
pub use abort::abort;
pub use config_helper::config;
pub use html::sanitize_rich_text;
pub use loop_iter::{Loop, WithLoop};
pub use redirect::{redirect, route, route_with, Redirect, RedirectBuilder};
pub use url_helper::{asset, url};
pub use larust_macros::{error_view, view, FormRequest, Model};
pub use larust_core::{axum, default_internal_html, default_not_found_html, AppError};
pub use tracing;
pub use serde_json;
pub mod validation {
pub use larust_validation::{form_urlencoded, rules, ValidationErrors};
}
pub mod view {
pub use larust_view::{escape, js, View};
}
pub mod push_registry {
pub use larust_view::push_registry::{drain, drain_since, mark, record, with_scope};
}
pub mod orm {
pub use larust_orm::{
backend, connect, migrate, migrate_fresh, placeholder, pool, sqlx, table_names,
AnyRepository, Backend, BindValue, ConnectionConfig, DatabaseConnections, Driver, Factory,
FactoryBuilder, Model, Op, Order, QueryBuilder, SoftDeletes,
};
}
pub mod repository {
pub use larust_repository::Repository;
}
pub mod auth {
pub use larust_auth::{
authorize, check, check_for, hash_password, id, id_for, login, logout, logout_for,
redirect_authenticated, redirect_authenticated_for, require_auth, require_auth_for, user,
verify_password, Auth, Authenticatable, Policy,
};
}
pub mod mail {
pub use larust_mail::{mail, MailBuilder, MailJob, Mailable};
}
pub mod preferences {
pub use larust_http::preferences::{get, CookieJar};
}
pub mod notification {
pub use larust_notifications::{
clear_notifications, delete_notification, mark_all_as_read, mark_as_read,
notifications_for, notify, notify_and_mail, to, unread_count, MailNotifiable,
MailNotification, Notification, PendingNotification, StoredNotification,
};
}
#[cfg(feature = "db")]
pub mod db {
pub use larust_db::{
connect, forget, get, get_raw, keys, parse_cli_value, put, put_raw, DbPlugin,
};
}
#[cfg(feature = "permissions")]
pub mod permission {
pub use larust_permissions::{
assign_role, authorize_admin, authorize_permission, create_permission, create_role,
give_permission_to, grant_role_permission, has_permission_to, has_role, is_admin,
remove_role, AdminRole, PermissionName, RoleName,
};
}
#[cfg(feature = "reverb")]
pub mod reverb {
pub use larust_reverb::{authorize, broadcast_event, runtime_js, socket, ReverbPlugin};
}
#[cfg(feature = "sanctum")]
pub mod sanctum {
pub use larust_sanctum::{create_token, revoke_all_tokens_for, revoke_token, ApiAuth};
}
#[cfg(feature = "shield")]
pub mod shield {
pub use larust_shield::{
authorize_ability, can, create_resource_permissions, grant_resource_abilities, Ability,
ResourceName, ResourcePermission, ALL_ABILITIES,
};
}
#[cfg(feature = "sitemap")]
pub mod sitemap {
pub use larust_sitemap::{build_xml, from_static_routes, response, ChangeFreq, SitemapEntry};
}
#[cfg(feature = "socialite")]
pub mod socialite {
pub use larust_socialite::{
github, google, redirect_url, user_from_callback, OAuthProvider, ProviderUser,
SocialiteUser,
};
}
pub mod cache {
pub use larust_cache::{forget, get, put, remember};
}
pub mod console {
pub use larust_console::{Command, CommandInfo, CommandRegistry};
}
pub mod event {
pub use larust_events::{dispatch, listeners, Event, ListenerRegistry};
}
pub mod lang {
pub use larust_lang::{current_locale, set_current_locale, t, t_or, t_or_with, t_with};
}
pub mod queue {
pub use larust_queue::{dispatch, work, Job, JobRegistry};
}
pub mod schedule {
pub use larust_scheduler::{work, Schedule};
}
pub mod storage {
pub use larust_storage::{
local, local_at, public, public_at, Disk, DiskConfig, FilesystemConfig,
};
}
pub mod wire {
pub use larust_live::{
components, mount, runtime_js, update, LiveRegistry, WireComponent, WirePlugin,
};
}
pub mod push {
pub use larust_live::push::{broadcast, runtime_js, socket, wrap, PushPlugin};
}
pub mod spa {
pub use larust_spa::{runtime_js, SpaPlugin};
}