Cbindgen can be used to generate C bindings for Rust code.
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/mozilla/cbindgen/archive/v0.26.0/cbindgen-0.26.0.tar.gz
Download MD5 sum: f3ef70691bc4743b8f76ca6d27847ba4
Download size: 216 KB
Estimated disk space required: 121 MB (add 600 MB for tests)
Estimated build time: 0.5 SBU (add 0.4 SBU for tests), both on a 4-core machine
An Internet connection is needed for building this package.
Install cbindgen by running the following commands:
cargo build --release
To test the results, issue: cargo test. Three tests in profile.rs
are known to fail.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/