automatically generates Rust FFI bindings (C and C++)
Project homepage: https://rust-lang.github.io/rust-bindgen/
Description
bindgen automatically generates Rust FFI bindings to C (and some C++)
libraries.
bindgen cli tool takes the path to an input C or C++ header file, and
optionally an output file path for the generated bindings. If the
output file path is not supplied, the bindings are printed to stdout.
If we wanted to generated Rust FFI bindings from a C header named
input.h and put them in the bindings.rs file, we would invoke bindgen
like this:
$ bindgen input.h -o bindings.rs
For more details, pass the --help flag:
$ bindgen --help
Package information
- Ports path
- devel/rust-bindgen
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel, lang/rust
- Available flavors
- None listed
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Build
- devel/cargo-generate-vendor STEM->=1.1
- lang/rust
Test
Used by (4 dependency relationships)
Includes library, runtime, build and test dependencies.