Cbindgen can be used to generate C bindings for Rust code.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://github.com/mozilla/cbindgen/archive/v0.29.0/cbindgen-0.29.0.tar.gz
Download MD5 sum: 6020b670f82890ef7205fd2c84395954
Download size: 236 KB
Estimated disk space required: 123 MB (add 576 MB for tests)
Estimated build time: 0.4 SBU (add 0.2 SBU for tests), both on a 4-core machine
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.
Install cbindgen by running the following commands:
cargo build --release
To test the results, issue: cargo
test --release. Three tests in profile.rs
are known to fail because they expect
some Rust unstable features disabled in the BLFS rustc-1.89.0
configuration.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/