Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

style/color: derive serialize & deserialize#659

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

10ne1
Copy link
Contributor

@10ne110ne1 commentedNov 1, 2024
edited
Loading

Using serde is useful in production, not just during development, so move it to optional 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.

@10ne110ne1force-pushed thedev/aratiu/allow-serializing-colors branch from3df125c to030a21aCompareNovember 1, 2024 15:40
Copy link
Member

@AaronErhardtAaronErhardt left a comment

Choose a reason for hiding this comment

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

I totally understand the intend of the PR and I agree that this is useful. However, some might want to use plotters without pulling in serde as dependency. Therefore, this feature should be added behind a feature flag IMO.

@10ne110ne1force-pushed thedev/aratiu/allow-serializing-colors branch from030a21a to5eb2238CompareDecember 4, 2024 08:21
Using serde is useful in production, not just during development,so move it to optional dependencies instead of dev-dependencies.This allows to derive serialize/deserialize for the color structswhich are very simple using the default implementation, allowingto pass colors along via serialization channels and formats.
@10ne110ne1force-pushed thedev/aratiu/allow-serializing-colors branch from5eb2238 to7f96558CompareDecember 4, 2024 08:51
@10ne1
Copy link
ContributorAuthor

Hello@AaronErhardt and thank you for your patience!

I've updated the PR to make serde an optional dependency while still keeping it enabled in dev-dependencies and added a small documentation blurb for the newserialization feature.

Copy link
Member

@AaronErhardtAaronErhardt left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

10ne1 reacted with hooray emoji10ne1 reacted with rocket emoji
@AaronErhardtAaronErhardt merged commit3ad52da intoplotters-rs:masterDec 6, 2024
18 checks passed
@10ne110ne1 deleted the dev/aratiu/allow-serializing-colors branchDecember 6, 2024 12:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@AaronErhardtAaronErhardtAaronErhardt approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@10ne1@AaronErhardt

[8]ページ先頭

©2009-2025 Movatter.jp