Skip to content

Upgrading ffigen 2 to 3

Breaking2.4.2 → 3.0.0Breaking2Platform1New2Changed1

BreakingUpgrade verdict

2 breaking changes and a platform requirement change.

  • The old workaround setting for arrays is gone, so remove it from your config file.
  • The old llvm-lib setting no longer works; switch to llvm-path.
  • This version needs Dart 2.13 or newer. That Dart release is what makes packed structs and inline arrays work.
3 items need code or config changes

Dart SDK requirement changed in 3.0.0: >=2.12.0 <3.0.0 → >=2.13.0 <3.0.0.

Breaking2
Removes the array-workaround config key.
array-workaround
Removes the deprecated llvm-lib config key; use llvm-path instead.
llvm-libllvm-path
Platform1
Requires Dart SDK >=2.13, which adds support for packed structs and inline arrays.