typeshare icon indicating copy to clipboard operation
typeshare copied to clipboard

typeshare - does it create kotlin methods?

Open arabdulazeez opened this issue 2 years ago • 1 comments

I see that typeshare creates classes in kotlin for the equivalent rust classes but when it comes to creating methods, the library doesn't support it. Any idea when you would add support to that?

arabdulazeez avatar Aug 13 '23 18:08 arabdulazeez

I don't think this can be done in most cases. For simple cases like getters/setters yes, but if a method has any logic translating this logic to all the various languages that typeshare produces wouldn't be possible without in-depth abstract syntax analysis on the Rust side. I strongly suspect this is not in the roadmap for this library and it will never be implemented.

czocher avatar Jun 04 '24 09:06 czocher