Skip to content
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

Basic serde support #1903

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Basic serde support #1903

wants to merge 3 commits into from

Conversation

oovm
Copy link

@oovm oovm commented Apr 10, 2023

Releated: #1381

License

I license past and future contributions under the dual MIT/Apache-2.0 license,
allowing licensees to choose either at their option.

@fintelia
Copy link
Contributor

Is there a reason that this cannot use Serde derives? Do the non-exhaustive annotations cause issues or something?

Comment on lines +92 to +93
# Enable serde for dependent crates.
serde = ["dep:serde", "rgb/serde", "num-complex/serde", "num-rational/serde"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use rgb?/serde to avoid pulling in the optional rgb dependency unintentionally.

Coincidentally, rgb?/serde is the official example for optional dependency features.

(I am not a maintainer)

@stephanemagnenat
Copy link

It would indeed be useful to have serde support for ImageBuffer as well, for example, RgbaImage would be helpful for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants