Questions tagged [tauri]

Tauri is a toolkit that helps developers make applications for the major platforms -- using HTML, CSS, and JavaScript. The core is built with Rust and leverages the local Webview2 / WebKit instance.

Resources:

262 questions
-1
votes
2 answers

Rust. UnsafeCell thread safety

I'm using the object from a crate, which was not written by me and i have a struct which i would like to use as a global variable, but i get this error: error[E0277]: `Rc>>` cannot be sent between threads safely …
swapgs
  • 3
  • 2
-1
votes
1 answer

Resize Wry WebView from window.resizeTo

I have a web application currently running in Electron and would like to move it to Wry/Tauri for opening speed. The application uses window.resizeTo to change the window size in real time. I have tried using the same command with Wry/Tauri, but it…
TheGr8_Nik
  • 3,080
  • 4
  • 18
  • 33
-1
votes
1 answer

Rust File Tree move occurs because `subtree` has type `trees::Tree`, which does not implement the `Copy` trait

i am trying to make a simple tauri Program where i have a Filetree of all Files and sub files of a chosen directory. I have not got many experience in Rust and ran into a problem with Ownerships. Code use std::fs; use std::path::PathBuf; use…
DaKoller
  • 11
  • 3
-2
votes
1 answer

How does rust simply get a return from a closure

Here's the problem I'm having with tauri. 'return' shows you the return value I need, and I know for a fact that writing it this way does not work at all. 'pick_file' is called asynchronously, and I know that message passing seems to work, but is…
-2
votes
4 answers

How do I save file urls on javascript?

I'm creating a webapp on which I load and display images. I want to have a feature on which the user can save the images they loaded so they can reload them on future sessions without having to manually set up everything again. For doing this I have…
-3
votes
1 answer

How to build Tauri app with open JS code?

Is it possible to build a tauri project in such a way that the javascript code remains open and editable so that I don't have to recompile the whole project? I searched for a similar question on the Internet and did not find an answer.
Jhwh Inri
  • 19
  • 4
1 2 3
17
18