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 Nov 7, 2022

#5 in #rspc

Download history 44/week @ 2023-12-14 38/week @ 2023-12-21 63/week @ 2023-12-28 148/week @ 2024-01-04 159/week @ 2024-01-11 189/week @ 2024-01-18 166/week @ 2024-01-25 211/week @ 2024-02-01 213/week @ 2024-02-08 287/week @ 2024-02-15 244/week @ 2024-02-22 159/week @ 2024-02-29 141/week @ 2024-03-07 121/week @ 2024-03-14 178/week @ 2024-03-21 226/week @ 2024-03-28

681 downloads per month

MIT license

5KB
74 lines

Specta Logo

Tauri Specta

Typesafe Tauri commands

Discord crates.io License

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