Cbindgen can be used to generate C bindings for Rust code.
This package is known to build and work properly using an LFS-8.4 platform.
Download (HTTP): https://github.com/eqrion/cbindgen/archive/v0.8.0/cbindgen-0.8.0.tar.gz
Download MD5 sum: b9339d099f0bda4b4db85e9a7f77a267
Download size: 96 KB
Estimated disk space required: 64 MB (add 303 MB for tests)
Estimated build time: 1.2 SBU (on a 4 core machine; add 0.3 SBU 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.
Now, as the root
user:
install -Dm755 target/release/cbindgen /usr/bin/
Last updated on 2019-02-15 13:01:29 -0800