typeshare

Synchronize type definitions between Rust and other languages

brewmacoslinux
Try with needOr install directly
Source

About

Synchronize type definitions between Rust and other languages for seamless FFI

Commands

typeshare

Examples

Generate TypeScript types from Rust source files$ typeshare ./src --lang typescript --out-dir ./generated
Generate Swift types from annotated Rust structures$ typeshare ./src --lang swift --out-dir ./generated
Display version and available language targets$ typeshare --version && typeshare --help