lib.rs 23 lignes · 952 octets
//! Reference HTML UI for Rustwarden ActivityPub federation.
//!
//! Ships handlers, Askama templates, default routes and a dashboard card
//! DTO for the federation flows (RFC 0021, 0023, 0024). Consumers that
//! provide their own UI can link only [`rustwarden_fediverse`] (headless
//! protocol) and ignore this crate; otherwise mount [`default_routes`]
//! and inject [`dashboard_card`] into the admin dashboard.

/// Federation dashboard card DTO factory.
pub mod dashboard;
/// Shared template DTOs (admin tabs, etc.).
pub mod dto;
/// HTTP request handlers (admin pages, login flow, consent, invites).
pub mod handlers;
/// Default Axum router for all federation UI routes.
pub mod routes;
/// Reference template strings exposed via `include_str!` for projects
/// that re-implement their own rendering layer.
pub mod template_examples;

pub use dashboard::dashboard_card;
pub use dto::{AdminTabDTO, admin_tabs};
pub use routes::default_routes;