Fix allow parsing unknown fields in darling proc-macro part
Add the undocumented `allow_unknown_fields` option to the darling derive.
This allows to parse also unknown fields, which we need for serde, since we cannot control how and when serde might add new attributes.
Fixes
@@ -374,7 +374,7 @@ fn serde_as_add_attr_to_field(field: &mut Field) -> Result<(), String> {
}
#[derive(FromField, Debug)]
- #[darling(attributes(serde))]
+ #[darling(attributes(serde), allow_unknown_fields)]
struct SerdeWithOptions {
#[darling(default)]
with: Option<String>,
