typeshare
« Back to VersTracker
Description:
Synchronize type definitions between Rust and other languages for seamless FFI
Type: Formula  |  Latest Version: 1.13.4@0  |  Tracked Since: Dec 11, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust ffi code-generation typescript swift kotlin
Install: brew install typeshare
About:
Typeshare is a CLI tool that generates type definitions and serialization code from Rust structs and enums. It enables seamless interoperability between Rust and other languages like Swift, Kotlin, TypeScript, and Go. This eliminates manual translation errors and accelerates development for cross-platform applications.
Key Features:
  • Generates type definitions for Swift, Kotlin, TypeScript, and Go
  • Leverages Rust's type system for guaranteed correctness
  • Simple annotation-based workflow using Rust attributes
  • Integrates easily into build pipelines
Use Cases:
  • Building cross-platform mobile apps with shared business logic in Rust
  • Creating web frontends that communicate securely with Rust backends
  • Maintaining consistent data models across microservices written in different languages
Alternatives:
  • cbindgen – cbindgen generates C headers from Rust, whereas Typeshare targets higher-level languages like Swift and TypeScript.
  • Protobuf/gRPC – Protobuf requires a separate IDL definition, while Typeshare derives types directly from existing Rust code.
Version History
Detected Version Rev Change Commit
Dec 11, 2025 11:39pm 0 VERSION_BUMP bca815f3