crux
crux copied to clipboard
Custom code generation from `serde-reflection` metadata
Current codegen for Swift, Kotlin and TypeScript relies on serde-generate
. This works quite well, but has a few limitations/challenges:
- Generics support across the FFI boundary (especially for
Option<T> and Result<T>
) - mostly because discovering a generic type with serde is non-trivial and probably not exactly reliable - Generated TypeScript code handling of enums could be improved on, especially enums could be more idiomatic
- Adding support for other shell languages is challenging. The obvious example is Dart in order to support Flutter
#206 is another example of current typegen causing problems
We should take a second look at https://github.com/1Password/typeshare