Crates.io | duid |
lib.rs | duid |
version | 0.1.0 |
source | src |
created_at | 2022-12-03 13:20:04.342661 |
updated_at | 2022-12-03 13:20:04.342661 |
description | Web framework for creating fast and interactive client side web application |
homepage | |
repository | https://github.com/djedou/duid/tree/master |
max_upload_size | |
id | 729105 |
size | 5,510 |
Djedou user interface design is a web framework for creating fast and interactive client side web application in Rust webassembly following Elm Architecture.
rustup target add wasm32-unknown-unknown
wasm-pack
and cargo install basic-http-server
cd .\examples\counter\
wasm-pack build --target web --release
basic-http-server -a 127.0.0.1:4000
examples/counter
).<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" name="viewport" />
<title>duid</title>
</head>
<body>
<div id="app"></div>
<script type="module">
import init, { duid } from './pkg/index.js';
(async () => {
await init();
await duid(document.querySelector('#app'));
})();
</script>
</body>
</html>
duid = { path = "../../", features = ["default"] }
wasm-bindgen = "0.2"
wasm-pack build --target web --release
basic-http-server -a 127.0.0.1:4000