typeshare icon indicating copy to clipboard operation
typeshare copied to clipboard

Support data-driven defaults for type mapping

Open LuminaSapphira opened this issue 2 years ago • 2 comments

Currently, bindings for date related types are exported as String, in the absence of user-specified configuration. We should add sensible defaults for additional type mappings to improve safe interoperability.

LuminaSapphira avatar Dec 06 '22 14:12 LuminaSapphira

The current system for default mapping is to extend the SpecialRustType enum, which is effort intensive, and requires implementation on all languages. A better system would be data-driven mappings, similar to the config, but embedded in the library.

LuminaSapphira avatar Dec 14 '22 16:12 LuminaSapphira

Unassigning myself since I'm primarily working on the DateTime mapping as hinted at in the original comment.

LuminaSapphira avatar Dec 14 '22 16:12 LuminaSapphira