aex/src/lib.rs
yaroslav k 6a07bd668d clear all compiler warnings
Remove unused imports (nav, sidebar, state, mock, inventory, item,
numput), the unused qty closure, the unused #![feature] gate, and a
module-scoped allow(dead_code) for the unmounted search stubs.
2026-08-15 14:56:57 +03:00

37 lines
863 B
Rust

//! aex — a D&D 5e character sheet and campaign dashboard.
//!
//! Leptos 0.8 app with actix-web SSR and client-side hydration. The crate
//! root declares the modules and the WASM entry point; `main.rs` holds the
//! SSR server, `app.rs` the component tree.
pub mod app;
#[allow(unused_imports)]
use leptos::prelude::*;
#[macro_use]
extern crate log;
#[allow(unused_imports)]
#[macro_use]
extern crate anyhow;
pub (crate) mod prelude;
pub mod entities;
pub mod state;
pub mod utils;
pub mod statics;
mod components;
#[allow(unused_imports)]
use prelude::*;
/// WASM entry point: hydrates `App` into the server-rendered DOM.
/// Only compiled with the `hydrate` feature.
#[cfg(feature = "hydrate")]
#[wasm_bindgen::prelude::wasm_bindgen]
pub fn hydrate() {
use app::*;
console_error_panic_hook::set_once();
leptos::mount::hydrate_body(App);
}