This branch contains code + examples for tauri-specta v2. You can check the v1.0.2 git tag for the v1 code + examples.
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.
- 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.
Run the example:
pnpm i
cd examples/app/
pnpm dev
Created by oscartbeaumont and Brendonovich.