Skip to content

Conversation

@jonasbb
Copy link
Owner

@jonasbb jonasbb commented Aug 14, 2022

Change the serde_as macro to warn on serde_as attributes on enum variant
fields. They are unsupported (in contrast to serde_derive), so showing
an error is better and avoids confusion when migrating.
Also update the main examples to include an enum.

Closes #499

Change the serde_as macro to warn on serde_as attributes on enum variant
fields. They are unsupported (in contrast to serde_derive), so showing
an error is better and avoids confusion when migrating.
Also update the main examples to include an enum.
@codecov
Copy link

codecov bot commented Aug 14, 2022

Codecov Report

Merging #502 (cfaee86) into master (2519bef) will decrease coverage by 0.21%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #502      +/-   ##
==========================================
- Coverage   70.81%   70.59%   -0.22%     
==========================================
  Files          52       52              
  Lines        3625     3636      +11     
==========================================
  Hits         2567     2567              
- Misses       1058     1069      +11     
Impacted Files Coverage Δ
serde_with/src/lib.rs 100.00% <ø> (ø)
serde_with_macros/src/lib.rs 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jonasbb
Copy link
Owner Author

jonasbb commented Aug 14, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 14, 2022

Build succeeded:

@bors bors bot merged commit 91f7604 into master Aug 14, 2022
@bors bors bot deleted the serde-as-enum branch August 14, 2022 15:02
ghedo added a commit to cloudflare/quiche that referenced this pull request Feb 20, 2025
This bumps url to match the versions specified in the workspace.

It also appears that the `serde_with` dependency was entirely
unnecessary, as the `serde_as` use in the code never actually worked
properly and it triggers a warning with newer versions
(jonasbb/serde_with#502) so I just removed it.
ghedo added a commit to cloudflare/quiche that referenced this pull request Feb 20, 2025
This bumps url to match the versions specified in the workspace.

It also appears that the `serde_with` dependency was entirely
unnecessary, as the `serde_as` use in the code never actually worked
properly and it triggers a warning with newer versions
(jonasbb/serde_with#502) so I just removed it.
ghedo added a commit to cloudflare/quiche that referenced this pull request Feb 20, 2025
This bumps url to match the versions specified in the workspace.

It also appears that the `serde_with` dependency was entirely
unnecessary, as the `serde_as` use in the code never actually worked
properly and it triggers a warning with newer versions
(jonasbb/serde_with#502) so I just removed it.
ghedo added a commit to cloudflare/quiche that referenced this pull request Feb 21, 2025
This bumps url to match the versions specified in the workspace.

It also appears that the `serde_with` dependency was entirely
unnecessary, as the `serde_as` use in the code never actually worked
properly and it triggers a warning with newer versions
(jonasbb/serde_with#502) so I just removed it.
ghedo added a commit to cloudflare/quiche that referenced this pull request Feb 21, 2025
This bumps url to match the versions specified in the workspace.

It also appears that the `serde_with` dependency was entirely
unnecessary, as the `serde_as` use in the code never actually worked
properly and it triggers a warning with newer versions
(jonasbb/serde_with#502) so I just removed it.
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.

serde_as does not process enum variant attributes

2 participants