Skip to content

Upgrading darling 0.2 to 0.3

Breaking0.2.2 → 0.3.2Breaking4New2

BreakingUpgrade verdict

4 breaking changes.

  • If you use the derive macro for `FromDeriveInput`, the special field that used to be called `body` is now called `data`.
  • If you use the derive macro for `FromVariant`, the special field that used to be called `data` is now called `fields`.
  • The library now depends on a newer version of the `syn` parsing library, which may require callers to update their own `syn` dependency.
  • The library now depends on a newer version of the `quote` library, which may require callers to update their own `quote` dependency.
Top 3 of 4 that need code or config changes

Adds quote ^0.4.

Installs 7 packages in all (was 8).

Breaking4
Renames magic field body to data in derived FromDeriveInput structs to stay in sync with syn.
FromDeriveInputbodydata
Renames magic field data to fields in derived FromVariant structs to stay in sync with syn.
FromVariantdatafields
Updates syn to 0.12.
syn
Updates quote to 0.4.
quote