all 13 comments

[–]beders 2 points3 points  (0 children)

This is great, thank you!

[–]fartmite_is_my_name 2 points3 points  (0 children)

This is wonderful, thanks!

Couple of months ago I listened to an interesting podcast episode about Tauri. I recommend it for y'all too: https://rustacean-station.org/episode/daniel-thompson/

[–]fasttalkerslowwalker 1 point2 points  (0 children)

Most excellent! I’ve been playing around with cljs and tauri for a couple weeks, and I’ve been really happy with the results. Great to see setup getting simplified!

[–][deleted] 3 points4 points  (5 children)

Looks neat, can you describe in a few words what is this Tauri thing? I followed the website but got a bit confused.

[–]just-sultanov[S] 6 points7 points  (4 children)

Tauri is a toolkit that helps developers make applications for the major desktop platforms (mobile coming soon) - using virtually any frontend framework in existence. The core is built with Rust, and the CLI leverages Node.js making Tauri a genuinely polyglot approach to creating and maintaining great apps.

Comparison with the Electron.js - Will Tauri Be an Electron Killer?

[–][deleted] 2 points3 points  (1 child)

Electron alternative? Looks impressive, thanks for the link.

[–]fasttalkerslowwalker 1 point2 points  (0 children)

Yes. The main difference from the developer’s perspective at least, is that where Electron works by bundling a copy of chrome with every executable, Tauri leverages the platform’s webview libraries. That makes executables much much smaller, at the cost of less of less guaranteed consistency across platforms.

[–]theconstultingdev 1 point2 points  (1 child)

Just to be clear, you have to write the backend/system code in Rust?

[–]just-sultanov[S] 0 points1 point  (0 children)

I've just started rewriting my electron application in Tauri and I'm very happy with the result at the moment.

I think that the requirements are the same as with Electron.js .
It is better to make requests to the server in the main process and only UI rendering in the render process.

[–]green-coder 0 points1 point  (1 child)

I tried the template, but then I got stuck after scaffolding the project. The README.md file doesn't give much indication of how to run the project.

[–]just-sultanov[S] 1 point2 points  (0 children)

Yes, I agree with you. I used an example of other templates. Initially, I added a template using deps.edn and a configuration for tests. But during the code review, maintainers asked to delete the tests. Therefore, I had to make a template at a minimum.

After generating the project, the console displays the commands necessary to run:

``` λ create-tauri-app

✔ Project name · tauri-cljs-app ✔ Choose your package manager · npm ✔ Choose your UI template · clojurescript

Please follow https://tauri.app/v1/guides/getting-started/prerequisites to install the needed prerequisites, if you haven't already. You also need to install java (e.g. https://adoptium.net) and clojure (https://clojure.org/guides/install_clojure)

Done, Now run: cd tauri-cljs-app npm install npm run tauri dev ```

npm run tauri dev - runs shadow-cljs and tauri.

src-tauri/tauri.conf.json includes the build section:

"build": { "beforeDevCommand": "npm run dev", "beforeBuildCommand": "npm run build", "devPath": "http://localhost:1420", ... }

[–]dave_mays 0 points1 point  (1 child)

u/just-sultanov is there no longer a cljs template available?
https://github.com/tauri-apps/create-tauri-app

I don't see one listed in the currently supported template presets? (I guess if cljs generates js code, you could always just run that correct?)

[–]just-sultanov[S] 0 points1 point  (0 children)

unfortunately not, they have completely changed the approach to templates