mirror of
https://github.com/kristoferssolo/echoes-of-ascension.git
synced 2026-02-04 14:32:04 +00:00
Initial commit
This commit is contained in:
25
frontend/Cargo.toml
Normal file
25
frontend/Cargo.toml
Normal 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
11
frontend/src/lib.rs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user