This commit is contained in:
Leon Liu 2024-12-30 18:24:55 +09:00
parent f0e268cae0
commit 873f6b4ea7

View File

@ -1,9 +1,4 @@
use std::{fs::File, io::Read, sync::Arc};
use leptos::{
logging::log,
prelude::{Read as Reads, *},
};
use leptos::prelude::{Read as Reads, *};
use reactive_stores::Store;
use serde::{Deserialize, Serialize};
use serde_wasm_bindgen::from_value;
@ -11,19 +6,6 @@ use strum_macros::EnumIter;
use wasm_bindgen::prelude::*;
use wasm_bindgen_futures::spawn_local;
#[derive(Deserialize, Serialize)]
struct Test {
a: Arc<str>,
}
impl Test {
fn new() -> Self {
let mut buf = String::new();
let _ = File::open("").unwrap().read_to_string(&mut buf);
serde_json::from_str(&buf).unwrap()
}
}
#[wasm_bindgen]
extern "C" {
// invoke without arguments