rust-bindgen-0.70.1

Introduction to rust-bindgen

The rust-bindgen package contains a utility that generates Rust bindings from C/C++ headers.

[Note]

Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information

rust-bindgen Dependencies

Required

rustc-1.82.0 and LLVM-19.1.0 (with Clang, runtime)

[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

To test the results, issue: cargo test --release.

Now, as the root user:

install -v -m755 target/release/bindgen /usr/bin

Contents

Installed Programs: bindgen
Installed Libraries: None
Installed Directories: None

Short Descriptions

bindgen

generates bindings for Rust from C/C++ headers