tauri-apps / tauri-invoke-http

A custom invoke system for Tauri that leverages a localhost server
Apache License 2.0
48 stars 5 forks source link

Tauri 2.0 support? #24

Open norude opened 1 month ago

norude commented 1 month ago

Basically this crate is not compatible with tauri 2.0 I tried to fix what I could in my fork, but I am not qualified enough to migrate this crate to 2.0 fully. Please help

ahkohd commented 1 month ago

@norude I'll have a look at this.

norude commented 2 weeks ago

I've tried again and this time I've ran into some bigger issues regarding the invoke_key. In the tauri crate invoke_key is at most pub(crate) (as far as I found) and there's no way to get it inside this rust code and thus no way to format it into the custom initialization_script. At the JS side, in regular tauri v2, the key is transmitted through the code in the default initialization_script, but since we have to override it, it isn't transmitted at all. So we have absolutely no access to the invoke key

In tauri v1 it worked like this

ahkohd commented 2 weeks ago

@norude can you share your progress in a public Github repo?

norude commented 2 weeks ago

yes, my fork