Initial Commit

This commit is contained in:
2024-10-12 14:36:36 +02:00
commit bfc5cbf624
67 changed files with 10860 additions and 0 deletions

17
avam-wasm/Cargo.toml Normal file
View File

@@ -0,0 +1,17 @@
[package]
name = "avam-wasm"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
avam = { path = "../", features = ["hydrate"] }
console_error_panic_hook = "0.1"
leptos = { version = "0.6", features = ["nightly", "hydrate"] }
wasm-bindgen = "=0.2.93"
tracing-subscriber = "0.3.18"
tracing-subscriber-wasm = { version = "0.1.0" }

6
avam-wasm/src/lib.rs Normal file
View File

@@ -0,0 +1,6 @@
#[wasm_bindgen::prelude::wasm_bindgen]
pub fn hydrate() {
use avam::domain::leptos::app::*;
console_error_panic_hook::set_once();
leptos::mount_to_body(App);
}