typeshare
typeshare copied to clipboard
Typeshare is the ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI.
## Overview Add support for C# version 11 with NewtonsoftJson as/serialization/deserialization library. ### Important Notes - C# does not have a `Unit` type, and hence, it results in an error...
Adds a Kotlin-language specific decorator in order to generate a custom `toString` function on data classes where all the field data removed. This is a guard to avoid potentially leaking...
Thanks to the prior work of @adriangb: https://github.com/1Password/typeshare/pull/25 This will be picked up in the coming weeks. Would already appreciate a provisional review with high-level feedback on design!
Hi there, I work at Rokt, and we are using type share for writing our domain models and creating Kotlin, Swift and TypeScript models. However, we also use C#, which...
Today all generated types will be put in a single module. I'd like to be able to allow types to optionally be defined in separate namespaces/modules. For example for Typescript....
Here's an alternative approach to support 64 bit integer types than the one taken in https://github.com/1Password/typeshare/pull/112. Rather than blessing one approach, with https://github.com/1Password/typeshare/pull/119 being merged, it seems like it's possible...
Inspired by a feature [ts-rs has](https://docs.rs/ts-rs/latest/ts_rs/trait.TS.html#method.export), allowing you to manually export types by calling `::export(...)` on them. Currently, Typeshare can't export types that are generated by macros (maybe that deserves...
Ran typeshare on my project and got the following errors: ``` thread '' panicked at 'failed to parse a rust type: ["usize"]', /Users/affan/.cargo/registry/src/github.com-1ecc6299db9ec823/typeshare-cli-1.0.0/src/main.rs:209:17 note: run with `RUST_BACKTRACE=1` environment variable to...
Closes #149.
This PR fixes issue #123 and adds a test to remove the possibility of future regressions.