linebender / norad

Rust crate for working with Unified Font Object files
Apache License 2.0
43 stars 12 forks source link

Fix DesignSpaceDocument lib serialization #339

Open madig opened 9 months ago

madig commented 9 months ago

TODO:

Closes https://github.com/linebender/norad/issues/338.

madig commented 9 months ago

I now realize that the serializer is a special-case implementation for quick-xml. Should the XML serialization stuff be kept in a separate serializer maybe to not interfere with lib serialization?

RickyDaMa commented 9 months ago

Should the XML serialization stuff be kept in a separate serializer maybe to not interfere with lib serialization?

Yeah I have a feeling to have good XML & JSON support we'll probably need to separate the implementations, given how serde annotations etc. are used by quick-xml. Just a hunch, I haven't looked into this myself. It's that or we may have to bully serde into using different (de)serialization logic depending on the format (which AFAIK it's not really supposed to do)