Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch rendering engine #37

Open
marcomq opened this issue Jan 9, 2022 · 1 comment
Open

Switch rendering engine #37

marcomq opened this issue Jan 9, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@marcomq
Copy link
Owner

marcomq commented Jan 9, 2022

Webview currently doesnt't support file urls anymore. At least not in the latest version on windows. Therefore, nimview will need to switch the used library to something else, supporting file urls.

The current candidate is https://github.com/tauri-apps/wry but this is unfortunately a rust library. So it would be required to build some Nim / C Wrapper first.

There might also be other libraries that can be used:
https://github.com/Elanis/web-to-desktop-framework-comparison

Requirements:

  • support Windows, MacOS and Linux
  • lightweight
  • support calling Javascript from Backend
  • doesn't require sockets - uses file urls
@marcomq marcomq added enhancement New feature or request help wanted Extra attention is needed labels Jan 9, 2022
@marcomq
Copy link
Owner Author

marcomq commented Jun 20, 2022

I had a first look at tauri 1.0 - and to be honest - it looks really good and advanced. It has an app creater helper, packager, auto refresh after code change and auto-update features. It also still looks lightweight.
It think nimview cannot compete with tauri and I can't find something bad in tauri that would make it worth to switch to something else.

Currently, I would probably recommend tauri for new applications.
And to have some nim or C code to call from the backend, it might still be possible to just write a rust application that calls nim via FFI https://stackoverflow.com/questions/59879692/how-to-call-a-nim-function-from-rust-through-c-ffi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant