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

Fix #74: Workaround for serde-indexed not supporting serde(skip) yet #75

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

AlfioEmanueleFresta
Copy link
Member

@AlfioEmanueleFresta AlfioEmanueleFresta commented Feb 16, 2025

Fixes #74, causing an error with change_pin_hid with Solo2 keys.

Unconditional skips aren't supported by serde-indexed - this includes either serde(skip_serializing) and serde(skip).

This change works around the limitation by using skip_serializing_if alongside a method which returns always true.

Long term fix is trussed-dev/serde-indexed#14 (unmerged since Feb 2024) - pinged authors and contributors to see if this can be merged.

Copy link
Collaborator

@msirringhaus msirringhaus left a comment

Choose a reason for hiding this comment

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

LGTM.
Yubikey and Nitrokey still work with that.

@AlfioEmanueleFresta AlfioEmanueleFresta merged commit 24b0744 into master Feb 17, 2025
4 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the serde-skip branch February 17, 2025 08:24
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.

Unused fields are serialized in Ctap2ClientPinRequest
2 participants