bindgen
« Back to VersTracker
Description:
Automatically generates Rust FFI bindings to C (and some C++) libraries
Type: Formula  |  Latest Version: 0.72.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust ffi bindings c c++ code-generation
Install: brew install bindgen
About:
Bindgen is a tool that automates the generation of Rust FFI bindings for C and C++ libraries. It parses C/C++ header files and produces safe, idiomatic Rust code, eliminating the error-prone manual process of writing Foreign Function Interface declarations. This enables seamless interoperability between Rust projects and existing native codebases.
Key Features:
  • Automatic binding generation from C/C++ headers
  • Support for complex C++ features like classes and templates
  • Configurable and extensible via Rust attributes
  • Integration with Cargo build scripts
Use Cases:
  • Linking Rust applications against existing C libraries
  • Wrapping C++ APIs for use in Rust
  • Creating safe Rust interfaces for low-level system libraries
Alternatives:
  • cbindgen – Generates C headers from Rust code, essentially the inverse of bindgen's purpose.
License: BSD-3-Clause
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 12, 2025 5:46am 0 VERSION_BUMP f801f6d1