The rust-bindgen package contains a utility that generates Rust bindings from C/C++ headers.
This package is known to build and work properly using an LFS 12.2 platform.
Download (HTTP): https://github.com/rust-lang/rust-bindgen/archive/v0.70.0/rust-bindgen-0.70.0.tar.gz
Download MD5 sum: 05dfba889299f3b666c43bbd1256af9f
Download size: 2.3 MB
Estimated disk space required: 178 MB
Estimated build time: 0.5 SBU (with parallelism=8)
rustc-1.80.1 and LLVM-18.1.7 (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