Skip to content

an experiment in using Yew to display sadoku puzzles

Notifications You must be signed in to change notification settings

askreet/sadoku-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sadoku-web

An experiment with porting my sudoku puzzle engine from sadoku into a Yew-based application running entire in WebAssembly.

To run it locally:

cargo build
cargo install trunk
trunk serve

Current Status

A Puzzle object is rendered as a nested series of Components (think React) written entirely in Rust.

Initial Takeaways

  • The development loop is really rewarding, much like developing other React applications.
  • For my small application, compile times were extremely fast and did not get in the way of flow.
  • CLion's Rust plugin, which is very awesome, lacks visibility into identifiers within macros that use token stream parsing, so it cannot offer code suggestions when accessing a context property and using a method on it. A minor annoyance, error display works flawlessly so it's clear when you mess this up. The proc macro expansion feature handles this pretty well, currently in beta.
  • Wrapping my head around use_reducer was tricky, but makes a lot of sense once you adopt the pattern.
  • Seems like Yew 0.20 is going to prefer function components versus struct components. Docs are a bit fuzzy on this in the 0.19 version.

About

an experiment in using Yew to display sadoku puzzles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published