Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oscartbeaumont/tauri-specta
Completely typesafe Tauri commands
https://github.com/oscartbeaumont/tauri-specta
rspc specta tauri typesafey
Last synced: 2 months ago
JSON representation
Completely typesafe Tauri commands
- Host: GitHub
- URL: https://github.com/oscartbeaumont/tauri-specta
- Owner: oscartbeaumont
- License: mit
- Created: 2022-11-06T14:17:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-04T07:02:28.000Z (3 months ago)
- Last Synced: 2024-04-04T08:24:48.440Z (3 months ago)
- Topics: rspc, specta, tauri, typesafey
- Language: Rust
- Homepage:
- Size: 813 KB
- Stars: 220
- Watchers: 3
- Forks: 22
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Lists
- awesome-tauri - Tauri Specta - Completely typesafe Tauri commands. (Development / Integrations)
README
This branch contains code + examples for tauri-specta v2.
You can check the [v1.0.2 git tag](https://github.com/oscartbeaumont/tauri-specta/tree/v1.0.2)
for the v1 code + examples.## Getting Started
For most use cases, you'll probably want to use [v1](./docs/v1.md), which is stable.
You can also use [v2](./docs/v2.md) which supports generating types for events and utilises Specta v2,
but both it and Specta v2 are still in development.## Known limitations
- Your command can only take up to 10 arguments. Any more and you'll get a compile error. If you need more just use a struct.
- Exporting your schema within a directory tracked by Tauri's hot reload will cause an infinite reload loop.## Development
Run the example:
```bash
pnpm i
cd examples/app/
pnpm dev
```## Credit
Created by [oscartbeaumont](https://github.com/oscartbeaumont) and [Brendonovich](https://github.com/brendonovich).