rust-bindgen-0.71.1

Introduction to rust-bindgen

Automatically generates Rust FFI bindings to C (and some C++) libraries.

rust-bindgen Dependencies

Required

LLVM-19.1.7 with Clang and rustc-1.84.0

[Note]

Note

An Internet connection is needed for building this package.

Installation of rust-bindgen

Install rust-bindgen by running the following commands:

cargo build --release

Now, as the root user:

install -Dm755 target/release/bindgen /usr/bin/

Still as the root user, install the Bash and Zsh completion support files

bindgen --generate-shell-completions bash \
    > /usr/share/bash-completion/completions/bindgen &&
bindgen --generate-shell-completions zsh  \
    > /usr/share/zsh/site-functions/_bindgen

Contents

Installed Program: bindgen
Installed Library: none
Installed Directory: none

Short Descriptions

bindgen

generates Rust FFI bindings to C (and some C++) libraries