shfty-elysian / elysian-legacy

Field function compiler
0 stars 0 forks source link

Comprehensive Serialize / Deserialize impls for core and shapes #116

Closed Shfty closed 1 year ago

Shfty commented 1 year ago

Need to be able to serialize and deserialize the user-facing API types for use as interchange.

Serialization has been implemented via typetag, but deserialization is also needed. Presently, this is blocked on a lack of generic deserialization inside typetag.

The solution is to switch to non-blanket trait impls, which will become feasible after #115 is closed.

Shfty commented 1 year ago

Done: Box<dyn Shape> can now be serialized and deserialized arbitrarily.