Skip to content

Fix regression in serde argument parsing#177

Merged
TheJokr merged 2 commits intomainfrom
lblocher/fix-serde-parsing
Mar 6, 2026
Merged

Fix regression in serde argument parsing#177
TheJokr merged 2 commits intomainfrom
lblocher/fix-serde-parsing

Conversation

@TheJokr
Copy link
Collaborator

@TheJokr TheJokr commented Mar 6, 2026

darling, by default, throws an error when encountering an attribute that
is not declared on a struct with #[derive(FromMeta)]. We silently
swallowed that error and ignored the entire meta attribute, which caused
a regression for the Default impls generated by #[settings].

To fix this, we now allow unknown fields on SerdeArgs. Additionally,
we propagate errors from SerdeArgs parsing to make debugging such
issues more straightforward in the future.

Includes release commit for 5.5.1.

@TheJokr TheJokr requested a review from fisherdarling March 6, 2026 11:40
@TheJokr TheJokr self-assigned this Mar 6, 2026
@TheJokr TheJokr force-pushed the lblocher/fix-serde-parsing branch from 5abf864 to 7b46799 Compare March 6, 2026 11:58
TheJokr added 2 commits March 6, 2026 12:03
darling, by default, throws an error when encountering an attribute that
is not declared on a struct with `#[derive(FromMeta)]`. We silently
swallowed that error and ignored the entire meta attribute, which caused
a regression for the Default impls generated by `#[settings]`.

To fix this, we now allow unknown fields on `SerdeArgs`. Additionally,
we propagate errors from `SerdeArgs` parsing to make debugging such
issues more straightforward in the future.
@TheJokr TheJokr force-pushed the lblocher/fix-serde-parsing branch from 7b46799 to 2bb2656 Compare March 6, 2026 12:03
@TheJokr TheJokr merged commit 1225f6e into main Mar 6, 2026
20 checks passed
@TheJokr TheJokr deleted the lblocher/fix-serde-parsing branch March 6, 2026 12:08
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.

2 participants