FICHA · MANJARO

cbindgen

A tool for generating C bindings to Rust code

  • tool
  • CLI
  • CODE-GENERATION
  • FFI
  • Launchable
  • Runs in terminal
official+codex · reviewed · May 27, 2026 description in en

Description

Generates C or C++ header files for Rust libraries that expose foreign-function interfaces. It helps C-family projects call Rust code through stable declarations.

Use it when publishing Rust libraries to non-Rust consumers. Generated bindings must match the exported ABI and should be tested with the target C or C++ build system.

How to run

cbindgen

Commands: cbindgen

Permissions

Permissions not analysed for this source yet.