Initial commit

This commit is contained in:
2025-01-25 14:04:05 +02:00
commit 4431a34c31
22 changed files with 4098 additions and 0 deletions

25
frontend/Cargo.toml Normal file
View File

@@ -0,0 +1,25 @@
[package]
name = "frontend"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
app = { path = "../app", default-features = false, features = ["hydrate"] }
leptos = { workspace = true, features = ["hydrate"] }
tracing.workspace = true
wasm-bindgen.workspace = true
[lints.clippy]
pedantic = "warn"
nursery = "warn"
unwrap_used = "warn"
expect_used = "warn"
[package.metadata.nextest]
slow-timeout = { period = "120s", terminate-after = 3 }

11
frontend/src/lib.rs Normal file
View File

@@ -0,0 +1,11 @@
use app::telemetry::{get_subscriber, init_subscriber};
#[wasm_bindgen::prelude::wasm_bindgen]
pub fn hydrate() {
use app::*;
// initializes logging using the `log` crate
let subscriber = get_subscriber("echoes-of-ascension-frontend", "info", std::io::stdout);
init_subscriber(subscriber);
leptos::mount::hydrate_body(App);
}