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.11.0/cbindgen-0.11.0.tar.gz
Download MD5 sum: 05da9526406a9ac5eda199e31586a8a2
Download size: 140 KB
Estimated disk space required: 90 MB (add 513 MB for tests)
Estimated build time: 0.9 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. Five tests, test_expand*, are known to fail.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/
Last updated on 2019-12-05 14:16:22 -0600