Cbindgen can be used to generate C bindings for Rust code.
This package is known to build and work properly using an LFS-10.1 platform.
Download (HTTP): https://github.com/eqrion/cbindgen/archive/v0.17.0/cbindgen-0.17.0.tar.gz
Download MD5 sum: 319023d51257da454f9a30aa3a358429
Download size: 188 KB
Estimated disk space required: 123 MB (add 533 MB for tests)
Estimated build time: 0.6 SBU (add 0.4 SBU for tests), both on a 4-core machine
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cbindgen
As with most Rust packages, this needs a network connection to check the current versions of the required cargo crates, and to download them if they are not already present.
Install cbindgen by running the following commands:
cargo build --release
To test the results, issue: cargo test. Three tests in the final suite are known to fail.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/
Last updated on 2021-02-20 14:53:06 -0800