cbindgen-0.29.2
C bindings generator from rust code
Back to search · Project homepage
Description
This project can be used to generate C bindings for Rust code:
* Builds bindings for a crate, its mods, its dependent crates, and their mods
* Only the necessary types for exposed functions are given bindings
* Can specify annotations for controlling some aspects of binding
* Support for generic structs and unions
* Support for exporting constants and statics
* Customizable formatting, can be used in C or C++ projects
* Support for generating #ifdef's for #[cfg] attributes
* Support for #[repr(sized)] tagged enum's
Package information
- Ports path
- devel/cbindgen
- Package architecture
- amd64
- Maintainer
- Landry Breuil <landry@openbsd.org>
- Categories
- devel, lang/rust
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.
Direct dependencies
Build
Used by (9 dependency relationships)
Includes library, runtime, build and test relationships. Results load 100 at a time.