Skip to content

mzzfederico/simple-rust-vdom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VDOM into Rust

Slowly writing an implementation of a VDOM following this article. No idea if this has any actual speed advantage over full JavaScript, as it stills calls DOM APIs to create elements and all.

Build for WASM

Prepare for wasm building:

rustup target add wasm32-unknown-unknown

next, run the actual compilation

cargo build --release --target wasm32-unknown-unknown

and this wraps it into a usable .js

wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/rust_vdom_example.wasm

Running the code

Just serve the index.html:

npx serve .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published