-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impl serde
for DynamicColor
#70
Impl serde
for DynamicColor
#70
Conversation
Using `DynamicColor` for color stops in Peniko will require this (when Peniko's `serde` feature is enabled).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't expose any new capabilities in terms of creating values, so it's probably fine.
I must admit, I'm not massively convinced that this is the serialisation format we'll want in the long-term. Can we document that the serialisation/deserialisation format isn't stable between color
versions?
This is here so that things that enable I don't think anyone should rely on I'm also not really sure how great using |
This isn't really our vibe; that being said, I'm perfectly happy for us to be pragmatic. I think having this thread of discussion that we are making the tradeoff for efficiency of intentionally not thinking about it is perfectly reasonable. |
I mean that |
I'm also not convinced that serde is the serialization format I want to use, Selvage does publicly turn the feature on, and it is used in the examples (serializing to a string buffer to show that it works), but that is about the extent of it. selvage example usage Even then the usage of serialization is more for the purposes of code organization, Some of the issues with serde for peniko are described in linebender/peniko#30 Edit: Added link to the example. |
Using
DynamicColor
for color stops in Peniko will require this (when Peniko'sserde
feature is enabled).