Open aptly-io opened 5 months ago
Hey, I have never used Tauri. But I think demand for it might be high enough that an additional template could be a good idea.
To your error specifically: Do you have a .cargo
dir with a config.toml
containing
[build]
rustflags = ["--cfg=web_sys_unstable_apis"]
This is necessary for the Clipboard feature. Documentation should definitely reflect this better!
Thank you. What you mean is to put together a leptonic-template-tauri? That would be awesome! I look forward to that!
I think some way forward for me now (as a rust beginner) is to maybe start off with the tauri-leptos scaffold-ed project and replace the front-end demo code with your leptonic-template-csr.
I tried to add the AppBar inside that scaffold-ed code. And that angered the compiler. Feels too difficult with my current rustc/cargo understanding to fix. It seems easier to try to glue 2 working projects together ...
Can you try out this template: https://github.com/lpotthast/leptonic-template-tauri
Make sure to install the cli for Tauri v2 with cargo install tauri-cli@2.0.0-beta.8
Thanks you! Well done! I could start on both the Linux desktop and Android emulator!
I wanted to try tauri with leptos and this leptonic library. I go through these steps:
During the compilation I notice the following error (the tauri demo screen shows up empty white)
Is there something I'm doing wrong in the way to use leptonic in tauri-leptos? Thank you!
PS it works without the clipboard feature. I can copy from and paste to the tauri window. Do one really need the clipboard feature? What benefit does it offer?