Skip to content

Upgrading darling 0.11 to 0.12

Breaking0.11.0 → 0.12.4Breaking2New7Fixed1

BreakingUpgrade verdict

2 breaking changes.

  • A method on the AST data type is gone, so code calling it will no longer compile.
  • Code that generates parsing logic with darling will now report an error when it meets an attribute it was asked to read but cannot understand, instead of quietly skipping it.
2 items need code or config changes
Breaking2
Removes unreachable from darling::ast::Data.
darling::ast::Dataunreachable
Derived impls of FromDeriveInput, FromField, FromVariant, and FromTypeParam now error on unsupported darling attribute shapes instead of silently ignoring them.
FromDeriveInputFromFieldFromVariantFromTypeParam