fix: BSD support in tauri-runtime - #14700
Conversation
Package Changes Through e3ac518There are 7 changes which include tauri-utils with patch, tauri-build with patch, tauri-cli with patch, @tauri-apps/cli with patch, tauri-runtime-wry with patch, tauri-runtime with patch, tauri with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
I really enjoyed reading this PR — the BSD changes and your explanations were thoughtful, clear, and honestly a pleasure to go through. It made me curious about the person behind the code, so I wanted to say hi 🙂 |
Hello. The most important change in this PR is the addition of the *bsd configuration options to the cfg attribute on top of Runtime's new_any_thread() method signature.
This ensures that implementing Runtime for Wry in tauri-runtime-wry doesn't cause a
function not a member of trait Runtimeerror.I also added the same options to places where, due to the practical similarities with Linux, it makes sense to have them and not treat the BSDs like they are entirely different platforms.
This does not mean full Tauri support on the BSDs, but after these changes and a few patches to a couple of dependecies, I was able to run the helloworld example successfully on FreeBSD, and I was able to compile another project that uses Tauri.