Content pfp
Content
@
0 reply
0 recast
2 reactions

‍‍ pfp
‍‍
@git
fantastic 🔌 sync types between rust and typescript, go, swift, scala and kotlin In other words, generate types for those languages from your rust code https://github.com/1Password/typeshare
1 reply
4 recasts
23 reactions

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I'd just use protobufs but I guess for Rust heavy projects it might make sense to do this.
1 reply
0 recast
1 reaction

‍‍ pfp
‍‍
@git
I would never pick protobufs over this
2 replies
0 recast
1 reaction

‍‍ pfp
‍‍
@git
because this is much lighter and only specifically for generating types from rust to those languages also my experience working with protobufs in the cosmos ecosystems. Far too much boilerplate and baggage. Granted it was before connectrpc and before config v2
1 reply
0 recast
1 reaction

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I see. If you just care about types but not serialization and transport then it's fine. When I've had the need to just have the same type defined in another language I've just used LLMs to translate the definition from one language to another.
0 reply
0 recast
2 reactions