Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ccbe26f
wip
oscartbeaumont Dec 8, 2025
309fd74
Merge remote-tracking branch 'origin/main' into upgrade-specta
oscartbeaumont Feb 24, 2026
f19427a
wip
oscartbeaumont Feb 24, 2026
e9f8646
edition 2024 + `Channel`
oscartbeaumont Feb 24, 2026
5d9f821
cleanup Tauri channel handling
oscartbeaumont Feb 24, 2026
38fb870
use Specta for generating `Router` type
oscartbeaumont Feb 24, 2026
732b466
move to Specta Typescript `export` + drop `anyhow`
oscartbeaumont Feb 24, 2026
c895c7b
cleanup
oscartbeaumont Feb 24, 2026
88fab5c
fix `Format::Files` w/ default exporter path
oscartbeaumont Feb 24, 2026
97d9fe6
remove `default_export_path`
oscartbeaumont Feb 24, 2026
940268f
flatten + revert
oscartbeaumont Feb 24, 2026
adf8f02
cleanup deps
oscartbeaumont Feb 24, 2026
8e8bad0
fix taurpc macros version
oscartbeaumont Feb 24, 2026
97e8faa
git locked Specta version + minor fixes
oscartbeaumont Feb 26, 2026
aa00676
update lockfile
oscartbeaumont Feb 26, 2026
f331616
version override
oscartbeaumont Feb 26, 2026
720e919
update lockfile
oscartbeaumont Feb 26, 2026
e5e7cf6
cleanup
oscartbeaumont Feb 26, 2026
3cf20c0
Upgrade Specta to rc.23 (ts `0.0.10`)
oscartbeaumont Mar 5, 2026
69211fa
Format, update rust-edition in format/lint
MatsDK Mar 8, 2026
2771bff
Upgrade Specta
oscartbeaumont Mar 30, 2026
520c705
bump dependencies
oscartbeaumont Mar 31, 2026
ca49099
remove more patches
oscartbeaumont Mar 31, 2026
cadcea6
wip
oscartbeaumont Mar 31, 2026
3a82cf8
update phase-specific example
oscartbeaumont Mar 31, 2026
65e6fd0
make logic read better
oscartbeaumont Mar 31, 2026
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
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ First, add the following crates to your `Cargo.toml`:
[dependencies]
taurpc = "0.7.1"

specta = { version = "=2.0.0-rc.22", features = ["derive"] }
# specta-typescript = "0.0.9"
specta = { version = "=2.0.0-rc.24", features = ["derive"] }
# specta-typescript = "0.0.11"
tokio = { version = "1", features = ["full"] }
```

Expand Down Expand Up @@ -241,15 +241,16 @@ All available options can be found in [specta_typescript's docs](https://docs.rs
let router = Router::new()
.export_config(
specta_typescript::Typescript::default()
.header("// My header\n")
.bigint(specta_typescript::BigIntExportBehavior::String),
.header("// My header"),
// Make sure you have the specified formatter installed on your system.
.formatter(specta_typescript::formatter::prettier)
)
.merge(ApiImpl.into_handler())
.merge(EventsImpl.into_handler());
```

TauRPC currently exports Rust bigint-like integers (`i64`, `u64`, `i128`, `u128`, `isize`, `usize`) as TypeScript `number` values. This keeps the generated bindings simple, but values outside JavaScript's safe integer range can lose precision.

# Calling the frontend

Trigger [events](https://v2.tauri.app/develop/calling-rust/#event-system) on your TypeScript frontend from your Rust backend with a fully-typed experience.
Expand Down
2 changes: 1 addition & 1 deletion dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"exec": {
"associations": "**/*.{rs}",
"rustfmt": "rustfmt --edition 2021",
"rustfmt": "rustfmt --edition 2024",
"rustfmt.associations": "**/*.rs"
},
"includes": [
Expand Down
Loading
Loading