chattyness/crates/chattyness-user-ui/src/lib.rs

42 lines
1,006 B
Rust

#![recursion_limit = "256"]
// Server builds don't use browser-specific code guarded by #[cfg(feature = "hydrate")]
#![cfg_attr(
not(feature = "hydrate"),
allow(unused_variables, dead_code, unused_imports)
)]
//! User UI components for chattyness.
//!
//! This crate provides the public user-facing interface including:
//! - Login and signup pages
//! - Realm browsing and viewing
//! - Scene editor for realm builders
//!
//! ## Usage
//!
//! For standalone use:
//! ```ignore
//! use chattyness_user_ui::App;
//! // App includes its own Router
//! ```
//!
//! For embedding in a combined app (e.g., chattyness-app):
//! ```ignore
//! use chattyness_user_ui::UserRoutes;
//! // UserRoutes can be placed inside an existing Router
//! ```
#[cfg(feature = "ssr")]
pub mod api;
pub mod app;
#[cfg(feature = "ssr")]
pub mod auth;
pub mod components;
pub mod pages;
pub mod routes;
pub mod utils;
pub use app::{App, shell};
pub use routes::UserRoutes;
#[cfg(feature = "ssr")]
pub use app::AppState;