Cbindgen can be used to generate C bindings for Rust code.
This package is known to build and work properly using an LFS-9.0 platform.
Download (HTTP): https://github.com/eqrion/cbindgen/archive/v0.9.0/cbindgen-0.9.0.tar.gz
Download MD5 sum: 81cb95f5c254fdcbba01a105cf41372f
Download size: 132 KB
Estimated disk space required: 87 MB (add 497 MB for tests)
Estimated build time: 1.0 SBU (Using paralleism=4; add 0.5 SBU for tests)
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. Four tests, test_expand*, are known to fail.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/
Last updated on 2019-08-19 11:11:15 -0700