DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
21.67k stars 834 forks source link

How to handle Tauri sidecars and allowing externalBin to be called ? #1454

Open jrouaix opened 1 year ago

jrouaix commented 1 year ago

Hello,

Do you have any working example where :

So far I only got file not found or permission denied. While the executing the dx serve --hot-reload --platform desktop, the have the right sidecar tool called.

The stuff was already hard to configure in Tauri, yet it seems worst with Dioxus ... more information from here :

jrouaix commented 1 year ago

Hoho ... so .... the Dioxus.toml deserialisation is typo tolerant 🤦🏼‍♂️

So my misspelled externalBin configuration was just silently ignored (I had to do external_bin).

Perhaps Dioxus users would enjoy a strictier toml deserialisation setting ? (so they don't lose hours like myself)

What do you think ?

ealmloff commented 1 year ago

Perhaps Dioxus users would enjoy a strictier toml deserialisation setting ? (so they don't lose hours like myself)

What do you think ?

Ignoring extra fields comes from the toml crate. I agree there should be a setting to turn this off (or even make it more strict by default), but I'm not sure if that crate allow more strict deserialization