https://github.com/carloslfu/tauri-deno-example
Run multiple Deno tasks safely using Tauri.
https://github.com/carloslfu/tauri-deno-example
deno denoland rust tauri
Last synced: 4 months ago
JSON representation
Run multiple Deno tasks safely using Tauri.
- Host: GitHub
- URL: https://github.com/carloslfu/tauri-deno-example
- Owner: carloslfu
- License: mit
- Created: 2024-11-26T22:23:30.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T14:46:13.000Z (6 months ago)
- Last Synced: 2024-12-08T15:29:16.165Z (6 months ago)
- Topics: deno, denoland, rust, tauri
- Language: Rust
- Homepage:
- Size: 2.11 MB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run Deno tasks with Tauri

This is an example of using Tauri and `deno_runtime` to run multiple Deno tasks in parallel. This repo showcases parallel code execution, stopping tasks, handling permissions, and getting results.
It uses channels to stop tasks and hashmaps to store the return values and thread handles of the tasks. The Tauri <> Rust communication is done through Tauri events and commands.
If there are pending permission requests it could block other tasks that need permissions due to a `deno_runtime` limitation. See [issue #1](https://github.com/carloslfu/tauri-deno-example/issues/1) and [this Deno issue](https://github.com/denoland/deno/issues/27160) for more details.
Run it with:
```bash
pnpm tauri dev
```