Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ jobs:
git checkout changeset-release/main
pnpm install --no-frozen-lockfile
git add .
git commit -m "chore(release): 📦 sync lockfile"
git push origin changeset-release/main
git diff --cached --quiet || (git commit -m "chore(release): 📦 sync lockfile" && git push origin changeset-release/main)
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
dist
target/
.claude/
CLAUDE.md
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ First, add the following crates to your `Cargo.toml`:
# src-tauri/Cargo.toml

[dependencies]
taurpc = "0.5.2"
taurpc = "0.7.1"

specta = { version = "=2.0.0-rc.22", features = ["derive"] }
# specta-typescript = "0.0.9"
Expand Down Expand Up @@ -53,7 +53,7 @@ async fn main() {
```

The `#[taurpc::procedures]` trait will generate everything necessary for handling calls and the type-generation. Now, you should run `pnpm tauri dev` to generate and export the TS types.
The types will by default be exported to `bindings.ts` in the root of your project, but you can specify an export path by doing this `#[taurpc::procedures(export_to = "../src/types.ts")]`.
You can specify an export path by doing this `#[taurpc::procedures(export_to = "../src/types.ts")]`. If no export path is provided, types will not be generated.

Then on the frontend install the taurpc package.

Expand Down
Loading
Loading