Commit 584b119b by dongshufeng

refactor(all): add iesplan example

parent 143270bf
......@@ -12,8 +12,9 @@ members = [
"mems/examples/ds-powerflow/ds-pf-input",
"mems/examples/ds-powerflow/ds-3phase-pf",
"mems/examples/ds-powerflow/ds-guizhou",
"mems/examples/iesplan",
]
[workspace.package]
edition = "2021"
rust-version = "1.75.0" # MSRV
rust-version = "1.80.0" # MSRV
[package]
name = "iesplan"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
[dependencies]
log = "0.4"
bytes = "1.7"
byteorder = "1.5"
serde = "1"
serde_json = "1"
serde_cbor = "0.11"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
serde-wasm-bindgen = "0.6"
yew = { version = "0.21", features = ["csr"] }
yew-agent = "0.2"
gloo-utils = "0.2"
gloo-file = "0.3"
gloo-timers = "0.3"
sha2 = { version = "0.10", default-features = false }
getrandom = { version = "0.2", features = ["js"] }
chrono = { version = "0.4", features = ["wasmbind"] }
protobuf = { version = "3.7", features = ["with-bytes"] }
cron = "0.12"
yew-bulma = { git = "https://github.com/shufengdong/yew-bulma.git"}
# web-sys and js-sys
js-sys = "0.3"
[dependencies.web-sys]
version = "0.3"
features = ["FormData", "File"]
\ No newline at end of file
use wasm_bindgen::prelude::*;
use web_sys::Element;
use crate::startpage::Dashboard;
pub mod startpage;
#[wasm_bindgen]
pub fn create_view(e: Element) {
yew::Renderer::<Dashboard>::with_root(e).render();
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论