Cbindgen-0.29.2

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-553

### Chapter 13. Programming

- Prev

  cargo-c-0.10.21

- Next

  Clisp-2.49.95

- Up
- Home

# Cbindgen-0.29.2

## Introduction to Cbindgen

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

### 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

- Download (HTTP): https://github.com/mozilla/cbindgen/archive/v0.29.2/cbindgen-0.29.2.tar.gz

- Download MD5 sum: 5da43d9d5547eb1abdd63eb11482eb7e

- Download size: 244 KB

- Estimated disk space required: 123 MB (add 553 MB for tests)

- Estimated build time: 0.4 SBU (add 0.2 SBU for tests), both on a 4-core machine

### cbindgen Dependencies

#### Required

rustc-1.95.0

### Note

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.

## 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.95.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

- Prev

  cargo-c-0.10.21

- Next

  Clisp-2.49.95

- Up
- Home