rust-bindgen-0.72.1

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 6. Tooling

- Prev

  Cbindgen-0.29.2

- Next

  Mako-1.3.10

- Up
- Home

# rust-bindgen-0.72.1

## Introduction to rust-bindgen

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

### Note

An Internet connection is needed for building this package. The system certificate store may need to be set up with make-ca-1.16.1 before building this package.

- Download: https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v0.72.1/rust-bindgen-0.72.1.tar.gz

### rust-bindgen Dependencies

Required
LLVM-21.1.8 with Clang and Rustc-1.93.1

## Installation of rust-bindgen

Install rust-bindgen by running the following commands:

    cargo build --release

Now, as the `root` user:

    install -vDm755 target/release/bindgen -t /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

- Prev

  Cbindgen-0.29.2

- Next

  Mako-1.3.10

- Up
- Home