Cbindgen can be used to generate C bindings for Rust code.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
下载地址(HTTP):https://github.com/mozilla/cbindgen/archive/v0.29.4/cbindgen-0.29.4.tar.gz
MD5 校验和:7e790e024bc678ad1b4431b0350679e9
大小:248 KB
预计所需磁盘空间:255 MB(含测试)
预计构建时间:0.4 SBU (add 0.2 SBU for tests), both on a 4-core machine
An Internet connection is needed for building this package. The system certificate store may need to be set up with make-ca-1.16.1 before building this package.
Install cbindgen by running the following commands:
cargo build --release
To test the results, issue: cargo
test --release. Three tests in profile.rs are known to fail because they expect
some Rust unstable features disabled in the BLFS rustc-1.96.0
configuration.
Now, as the root user:
install -Dm755 target/release/cbindgen /usr/bin/