DEV Community

Cover image for Reactive Canvas with Rust/WebAssembly and web-sys
Ben Lovy
Ben Lovy

Posted on

Reactive Canvas with Rust/WebAssembly and web-sys

Liquid syntax error: Variable '{{ let el = $document.create_element($type)?; append_attrs!($document, el, $( $attr ),*); el}' was not properly terminated with regexp: /\}\}/

Top comments (11)

Collapse
 
ben profile image
Ben Halpern

This is cool

Collapse
 
deciduously profile image
Ben Lovy

What's cooler is what you can build next.

Collapse
 
ben profile image
Ben Halpern

Definitely!

Thread Thread
 
deciduously profile image
Ben Lovy

You may have given me an excuse to finally execute some Rust code! I’ve done lots of reading but haven’t actually tried using Rust yet.

Ever give it a go?

Collapse
 
rhymes profile image
rhymes

Nice post!!

Collapse
 
jeikabu profile image
jeikabu

My lack of experience with JS/node/NPM was a bit of a roadblock with WASM.
Nice use of macros.

Collapse
 
deciduously profile image
Ben Lovy

Yep, it's a pretty big can of worms if you've never worked with it before, but it's nice that it does integrate so nicely with an already established workflow.

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€ • Edited

I'll be checking this out after I'm done with my WASM project, man they are LONG.

Collapse
 
wiltel492019 profile image
Wiltel492019

Decent amount of materials.Rust!!!

Collapse
 
nmrshll profile image
Nicolas Marshall

Great stuff ! Thanks !

Collapse
 
lexchou profile image
Lex Chou

This is cool, I tried this out but sadly the debugger cannot step into the rust's source code, is there anyone can have a source-level debugging in rust wasm?