plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.91k stars 280 forks source link

style/color: derive serialize & deserialize #659

Open 10ne1 opened 3 weeks ago

10ne1 commented 3 weeks ago

Using serde is useful in production, not just during development, so move it to normal dependencies instead of dev-dependencies.

This allows to derive serialize/deserialize for the color structs which are very simple using the default implementation, allowing to pass colors along via serialization channels and formats.