Cbindgen-0.27.0

Introduction to Cbindgen

Cbindgen can be used to generate C bindings for Rust code.

[Note]

Note

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.

Package Information

cbindgen Dependencies

Required

rustc-1.81.0

[Note]

Note

An Internet connection is needed for building this package.

Installation of cbindgen

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.81.0 configuration.

Now, as the root user:

install -Dm755 target/release/cbindgen /usr/bin/

Contents

Installed Program: cbindgen
Installed Library: none
Installed Directory: none

Short Descriptions

cbindgen

generates C bindings for Rust code