Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/specta-rs/tauri-specta
Completely typesafe Tauri commands
https://github.com/specta-rs/tauri-specta
rspc specta tauri typesafey
Last synced: 2 days ago
JSON representation
Completely typesafe Tauri commands
- Host: GitHub
- URL: https://github.com/specta-rs/tauri-specta
- Owner: specta-rs
- License: mit
- Created: 2022-11-06T14:17:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-19T11:18:23.000Z (23 days ago)
- Last Synced: 2025-02-02T01:02:17.112Z (9 days ago)
- Topics: rspc, specta, tauri, typesafey
- Language: Rust
- Homepage:
- Size: 1.13 MB
- Stars: 427
- Watchers: 3
- Forks: 44
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
> [!NOTE]
> This branch contains tauri-specta v2, you can checkout the git tag [v1.0.2](https://github.com/oscartbeaumont/tauri-specta/tree/v1.0.2) for the previous version.## Getting Started
First you will need to choose a version:
| | Tauri v1 | Tauri v2 |
| --------- | ------------------------------------ | ------------------------------------ |
| Specta v1 | Tauri Specta v1 [docs](https://docs.rs/tauri-specta/%5E1.0.2/tauri_specta/index.html) | Unsupported |
| Specta v2 | Unsupported | Tauri Specta v2 [docs](https://docs.rs/tauri-specta/^2.0.0-rc.11/tauri_specta/index.html) |Tauri Specta v2 also comes with support for generating types for events.
Follow the documentation links above for help getting started.
## Development
Run the example:
```bash
pnpm i
cd examples/app/
pnpm tauri dev
```### Running tests
```bash
mkdir _out
OUT_DIR="$(pwd)/_out" cargo test --all --all-features
```## Credit
Created by [oscartbeaumont](https://github.com/oscartbeaumont) and [Brendonovich](https://github.com/brendonovich).