Cbindgen can be used to generate C bindings for Rust code.
This package is known to build and work properly using an LFS-9.1 platform.
Download (HTTP): https://github.com/eqrion/cbindgen/archive/v0.13.1/cbindgen-0.13.1.tar.gz
Download MD5 sum: 5b13c2d2ba8465a940427d3fcafa8adb
Download size: 160 KB
Estimated disk space required: 92 MB (add 522 MB for tests)
Estimated build time: 1.1 SBU (Using parallelism=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. Seven tests, test_expand* and test_dep_v2, are known to fail.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/
Last updated on 2020-02-16 15:50:16 -0800