devel/rust-cbindgen 0.29.4_4,1 FreeBSD
Generate C bindings from Rust code
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
9c878207a1- License
- MPL20
- Categories
- devel
- Package size
- 979.9 KiB, 2481.9 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 |
|---|---|---|
| FreeBSD | devel/rust-cbindgen | 0.29.4_4,1 |
| DragonFly | devel/rust-cbindgen | 0.28.0 |
| MidnightBSD | devel/rust-cbindgen | 0.29.4,1 |
Install
Binary package:
pkg install rust-cbindgen
From the ports tree:
cd /usr/ports/devel/rust-cbindgen/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= rust-cbindgen>0:devel/rust-cbindgen
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.29.4_3,1 | 0.29.4_4,1 | - | 0.28.0_2 | 0.29.4_4,1 |
| FreeBSD:14:quarterly | 0.29.4_2,1 | 0.29.4_2,1 | n/a | 0.28.0_1 | 0.29.4_2,1 |
| FreeBSD:15:latest | 0.29.4_4,1 | 0.29.4_4,1 | n/a | 0.28.0_2 | 0.28.0_2 |
| FreeBSD:15:quarterly | 0.29.4_2,1 | 0.29.4_2,1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.29.4_2,1 | 0.29.4_4,1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 11
Configuration
No options to configure.
- USES
- cargo
- Service scripts
- none
Files
distinfo 73
| File | Size | SHA256 |
|---|---|---|
| rust/crates/cbindgen-0.29.4.crate | 238017 | 2ecb53484c9c167ba674026b656d8a27d7657a58e6066aa902bfb1a4aa00ae20 |
| rust/crates/anstream-0.6.19.crate | 28767 | 301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933 |
| rust/crates/anstyle-1.0.11.crate | 15880 | 862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd |
| rust/crates/anstyle-parse-0.2.7.crate | 21707 | 4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2 |
| rust/crates/anstyle-query-1.1.3.crate | 10190 | 6c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9 |
| rust/crates/anstyle-wincon-3.0.9.crate | 12561 | 403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882 |
| rust/crates/autocfg-1.5.0.crate | 18729 | c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8 |
| rust/crates/bitflags-2.9.1.crate | 47913 | 1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967 |
| rust/crates/cfg-if-1.0.1.crate | 8683 | 9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268 |
| rust/crates/clap-4.5.41.crate | 58298 | be92d32e80243a54711e5d7ce823c35c41c9d929dc4ab58e1276f625841aadf9 |
| rust/crates/clap_builder-4.5.41.crate | 169633 | 707eab41e9622f9139419d573eca0900137718000c517d47da73045f54331c3d |
| rust/crates/clap_lex-0.7.5.crate | 13469 | b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675 |
| rust/crates/colorchoice-1.0.4.crate | 8196 | b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75 |
| rust/crates/dashmap-5.5.3.crate | 24061 | 978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856 |
| rust/crates/diff-0.1.13.crate | 46216 | 56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8 |
| rust/crates/equivalent-1.0.2.crate | 7419 | 877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f |
| rust/crates/errno-0.3.13.crate | 12449 | 778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad |
| rust/crates/fastrand-2.3.0.crate | 15076 | 37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be |
| rust/crates/getrandom-0.3.3.crate | 49493 | 26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4 |
| rust/crates/hashbrown-0.14.5.crate | 141498 | e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1 |
Master sites 1
- CRATESIO/cbindgen/${DISTNAME}${CARGO_CRATE_EXT}