Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuild

Package for authoring build_runner compatible code generators.

pub.devRemove
ffigen

Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift files.

pub.devRemove
ScoresHealth8790 (best)
Maintenance9092 (best)
Quality9394 (best)
Popularity8585
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)8.1M (best)1.1M
Likes102340 (best)
Pub points150 / 160160 / 160 (best)
GitHub stars871 (best)281
MaintenanceLatest release5.0.0, 5 weeks ago (best)23.0.0, 7 weeks ago
Major versions in 12 months1 (best)2
Contributors100+100+
Publisherdart.devtools.dart.dev
FitPlatformsAll (pure Dart)Android, iOS, Windows, macOS, Linux
WASM-readyNoNo
KindPure DartFFI (native library)
Code generationYesNo
Direct dependencies6 (best)18
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortMediumHigh
JudgementStrengths
  • Provides the core underlying Builder interface used across the Dart build ecosystem.
  • Gives easy access to the analyzer for processing and resolving Dart source code.
  • Automates generating complex Dart FFI bindings from native headers.
  • Supports C, Objective-C, and experimental C++ features.
Weaknesses
  • Low-level compared to source_gen, requiring more manual handling of build steps.
  • Major version updates can introduce breaking changes for packages implementing BuildStep.
  • Requires LLVM and LibClang installed on the host system to run.
  • YAML configuration format is deprecated in favor of the programmatic Dart API.
WarningsNoneNone
build vs ffigen: which Flutter package should you use? | pubscout