这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@serhii-tokariev84
Copy link

No description provided.

@Leksat
Copy link

Leksat commented Aug 27, 2022

With this PR I was able to use the library in a Tauri app. Works well so far. Thank you!

@Narsil
Copy link
Owner

Narsil commented Nov 11, 2022

This would need to be done for ALL oses unfortunately, this is afaik, impossible. :(

@medzernik
Copy link

Any chance this gets merged anytome soon? I'd love to try it out

@Narsil
Copy link
Owner

Narsil commented Nov 17, 2022

No this will not get merged as it would be only available for MacOS, but by all means check out the branch and try it out !

@medzernik
Copy link

though i think this can't be used with tauri on cross-platform apps anyway.. i'll try to think of a different solution

@Narsil
Copy link
Owner

Narsil commented Nov 18, 2022

though i think this can't be used with tauri on cross-platform apps anyway.. i'll try to think of a different solution

Why cannot it be ? Tauri is just an app, as long as you respect the threading requirements it should work on all platforms Tauri or not Tauri. I used this crate to build an electron app and it worked just fine.

@medzernik
Copy link

though i think this can't be used with tauri on cross-platform apps anyway.. i'll try to think of a different solution

Why cannot it be ? Tauri is just an app, as long as you respect the threading requirements it should work on all platforms Tauri or not Tauri. I used this crate to build an electron app and it worked just fine.

would you have some sort of example? im not sure that it would work with the architecture i have currently setup.

@Narsil
Copy link
Owner

Narsil commented Nov 18, 2022

Not with Tauri, and it's been a long time since I used the electron app tbh.

The main issue was being on the main thread (which is required by MacOS). I'm telling all this from memory so I might be wrong.

Worst case scenario, that I started with was having a dedicated process for the listening part, and communicating with the electron app through your favorite cross process communication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants