A simple app for drawing images of multiple layers on an html canvas element, built with yew & tauri.
It's an exercise work for myself to learn rust, yew and wasm.
The app maybe will not be upgraded in the future.
Using wasm instead of javascript to create a SPA.
Tailwind css.
Smaller, no need to pack a chromium core.
Click to run, no need to download Node.js runtime.
First, you need to check the enviroments of tauri & yew.
Don't forget tauri-cli
.
In root
dir,
cargo tauri dev
For tailwind css, in wasm
dir,
tailwindcss -i index.css -o build.css --watch
In root
dir,
cargo tauri build
After building, the installer will be in ./src-tauri/release/bundle
.
I devlopped wasm part on Macbook Pro m1, and it worked well.
However, on MacOS, tauri
/ wry
is not surpport html input
element to upload file yet. Here is the issue.
I didn't test on Linux, but I think it would work.