The rust-bindgen package contains a utility that generates Rust bindings from C/C++ headers.
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.
Download (HTTP): https://github.com/rust-lang/rust-bindgen/archive/v0.70.1/rust-bindgen-0.70.1.tar.gz
Download MD5 sum: 4f00ced86e359945f78276a2255aa1a7
Download size: 2.2 MB
Estimated disk space required: 161 MB
Estimated build time: 0.3 SBU (with parallelism=8)
rustc-1.83.0 and LLVM-19.1.0 (with Clang, runtime)
An Internet connection is needed for building this package.
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