talira

Compare

bindgenflutter_rust_bridgenapi-rsGObject Introspection
What it isGenerates Rust FFI bindings to C and some C++ libraries from their headersCall Rust code from Flutter and Dart, with the glue code generated for youA framework for building compiled Node.js add-ons in Rust via Node-APIMiddleware between GObject-based C libraries and language bindings
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.680.690.750.37
Stars532855008055—
Last commit2026-11-232026-11-282026-11-24—
LicenceBSD-3-ClauseMITMITLGPL-2.0-or-later AND GPL-2.0-or-later AND MIT
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
CompanyThe Rust ProjectfzyzcjyNAPI-RSGNOME Foundation
non-profit
Features
  • Generates repr(C) structs, extern functions, enums and constants from C headers
  • Runs from build.rs as a build dependency, or from the command line with bindgen-cli
  • Allowlisting, blocklisting, opaque and replaced types
  • Control over derived traits such as Copy and Clone
  • Extra clang arguments through environment variables, per target for cross-compiling
  • generates Dart bindings for ordinary Rust code
  • arbitrary Rust types, closures, async functions and traits
  • Rust can call Dart functions
  • one-command project setup with flutter_rust_bridge_codegen create
  • Android, iOS, Windows, Linux, macOS and web (JS and WebAssembly)
  • #[napi] macros generate JavaScript bindings and TypeScript definitions
  • napi build: zero-config build of the add-on
  • Cross-compilation for many platforms
  • CI templates and per-platform npm packages
  • WebAssembly target from the same code
  • Lifetime-managed, safer API design
  • scanner that generates GIR from C sources and headers
  • GIR XML format and binary typelib compiler
  • libgirepository to read typelibs at runtime
  • automatic bindings for GObject libraries in other languages
Limitations
  • C++ support is partial: it handles C and only some C++
  • Needs libclang installed to parse headers