randomPoison / cs-bindgen

Experiment in using Rust to build a library that can be loaded by Unity across multiple platforms
4 stars 0 forks source link

Remove dependency on schematic #59

Open randomPoison opened 4 years ago

randomPoison commented 4 years ago

At this point it's clear that we can't use schematic to describe the structure of exported types. It was originally created with the expectation that it could work to describe both the data generated by Serde and types exported by cs-bindgen, but over time it's become more clear that those two use cases are different enough to warrant having completely different setups. In #58 I introduced a custom Repr enum for describing the representation of exported values, which replaced most of the usages of Schema in cs-bindgen. At this point, the only place Schema is used is to describe exported value types.

To fully remove the dependency on schematic, we need to do the following: