Cbindgen can be used to generate C bindings for Rust code.
This package is known to build and work properly using an LFS-10.0 platform.
Download (HTTP): https://github.com/eqrion/cbindgen/archive/v0.14.3/cbindgen-0.14.3.tar.gz
Download MD5 sum: 68b7c5c20bbe9bfd4ec692bca1634c8e
Download size: 172 KB
Estimated disk space required: 102 MB (add 537 MB for tests)
Estimated build time: 0.9 SBU (Using parallelism=4; add 0.4 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. Six tests, test_expand*, are known to fail.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/
Last updated on 2020-08-17 19:58:45 -0700