Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom code generation from serde-reflection metadata #145

Open
charypar opened this issue Sep 29, 2023 · 2 comments
Open

Custom code generation from serde-reflection metadata #145

charypar opened this issue Sep 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@charypar
Copy link
Member

charypar commented Sep 29, 2023

Current codegen for Swift, Kotlin and TypeScript relies on serde-generate. This works quite well, but has a few limitations/challenges:

  1. 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
  2. Generated TypeScript code handling of enums could be improved on, especially enums could be more idiomatic
  3. Adding support for other shell languages is challenging. The obvious example is Dart in order to support Flutter
@charypar
Copy link
Member Author

#206 is another example of current typegen causing problems

@charypar
Copy link
Member Author

We should take a second look at https://github.com/1Password/typeshare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Type Generation
Development

No branches or pull requests

1 participant