Skip to content

Specta 2.0.0-rc.25#22

Merged
johncarmack1984 merged 35 commits into
fltsci:mainfrom
oscartbeaumont:rc.25
May 8, 2026
Merged

Specta 2.0.0-rc.25#22
johncarmack1984 merged 35 commits into
fltsci:mainfrom
oscartbeaumont:rc.25

Conversation

@oscartbeaumont
Copy link
Copy Markdown

@oscartbeaumont oscartbeaumont commented May 6, 2026

Changes:

  • Upgrade Specta
  • Dangerously skip bigints reimplemented
  • Typesafe error handling for TauRPC commands
  • Phased types support (was already working on main but just confirming it works with everything else)
  • Semantic types support
    • Commands
    • Channel
    • Events

Known bugs:

  • Doc comments from container of #[taurpc::ipc_type] seem to be applied to all fields.
  • Remove TRANSFORM_MAP when it's not required. this is a bad idea as the user should assign it to createProxy.

@oscartbeaumont oscartbeaumont changed the title Specta 2.0.0-rc.25 [WIP] Specta 2.0.0-rc.25 May 6, 2026
# Conflicts:
#	README.md
#	example/src-tauri/Cargo.lock
#	example/src-tauri/Cargo.toml
#	example/src-tauri/gen/schemas/acl-manifests.json
#	example/src-tauri/gen/schemas/desktop-schema.json
#	example/src-tauri/src/main.rs
#	example/src/lib/bindings.ts
#	src/index.ts
#	taurpc/Cargo.lock
#	taurpc/Cargo.toml
#	taurpc/src/export.rs
#	taurpc/src/lib.rs
@oscartbeaumont
Copy link
Copy Markdown
Author

You will need to patch Specta, Specta Serde, Specta Typescript and Specta Util to commit 34f7c14c9698f9de7d56ebbeebfdb8e1b781e694 (or whatever the latest is) until the next release (which should be very soon!).

tldr for Flight Sciences codebase (or AI agent):

  • Typesafe error handling can be enabled via taurpc::Builder::error_handling(ErrorHandlingMode::Result)
  • You can disable bigint errors using taurpc::Builder::dangerously_cast_bigints_to_number but this is not very safe as your numbers may get truncated if they are big enough. To understand more about this refer to this.
  • You will need to use Builder::semantic_types(specta_typescript::semantic::Configuration::default()) if you want semantic types (support for native JS types with Specta like Date, Uint8Arrray, URL, etc.).

@johncarmack1984 johncarmack1984 marked this pull request as ready for review May 7, 2026 22:37
@johncarmack1984 johncarmack1984 marked this pull request as draft May 7, 2026 22:49
@oscartbeaumont oscartbeaumont marked this pull request as ready for review May 7, 2026 23:53
@johncarmack1984 johncarmack1984 merged commit de06f63 into fltsci:main May 8, 2026
1 check passed
@oscartbeaumont oscartbeaumont deleted the rc.25 branch May 8, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants