devel/rust-cbindgen 0.28.0 DragonFly
Generate C bindings from Rust code
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MPL20
- Categories
- devel
- Package size
- 1414.7 KiB, 5417.5 KiB installed
Description
cbindgen generates C bindings from Rust code. Unlike rusty-cheddar it supports generics, C++ enum class and template specialization as well as multiple modules and crates. It's primarily developed for WebRender but has been designed to support any project.
Features: * 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
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/rust-cbindgen | 0.28.0 |
| FreeBSD | devel/rust-cbindgen | 0.29.4_4,1 |
| MidnightBSD | devel/rust-cbindgen | 0.29.4,1 |
| HardenedBSD | devel/rust-cbindgen | 0.29.4_2,1 |
| GhostBSD | devel/rust-cbindgen | 0.29.4_2,1 |
Install
Binary package:
pkg install rust-cbindgen
From DPorts:
cd /usr/dports/devel/rust-cbindgen && make install clean
Dependencies
Run dependencies 1
No port depends on this one.