4 releases
2.0.0-rc.4 | Dec 5, 2023 |
---|---|
2.0.0-rc.3 | Oct 22, 2023 |
2.0.0-rc.2 | Oct 5, 2023 |
2.0.0-rc.1 | Oct 4, 2023 |
0.0.2 |
|
#5 in #rspc
681 downloads per month
5KB
74 lines
This branch contains code + examples for tauri-specta v2. You can check the v1.0.2 git tag for the v1 code + examples.
Getting Started
For most use cases, you'll probably want to use v1, which is stable.
You can also use v2 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:
pnpm i
cd examples/app/
pnpm dev
Credit
Created by oscartbeaumont and Brendonovich.
Dependencies
~0.4–0.8MB
~19K SLoC