| Port details on branch 2024Q2 |
- rust-cbindgen Generate C bindings from Rust code
- 0.29.3_1,1 devel
=3 0.29.2_8Version of this port present on the latest quarterly branch. - Maintainer: gecko@FreeBSD.org
 - Port Added: 2018-08-19 16:41:23
- Last Update: 2026-06-11 19:32:50
- Commit Hash: 3d88f19
- People watching this port, also watch:: libraw, font-misc-meltho, py311-pycparser, desktop-file-utils, libinotify
- License: MPL20
- WWW:
- https://github.com/mozilla/cbindgen
- 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
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- rust-cbindgen>0:devel/rust-cbindgen
- To install the port:
- cd /usr/ports/devel/rust-cbindgen/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/rust-cbindgen
- pkg install rust-cbindgen
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: rust-cbindgen
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1779988797
SHA256 (rust/crates/cbindgen-0.29.3.crate) = c95537b45400390270fae69ac098d057c8f5399001cde9d04f700c105ddfff2d
SIZE (rust/crates/cbindgen-0.29.3.crate) = 236733
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- rust>=1.96.0 : lang/rust
- Runtime dependencies:
-
- cargo : lang/rust
- This port is required by:
- for Build
-
- accessibility/accesskit-c
- databases/mongodb70
- databases/mongodb80
- games/0ad
- lang/spidermonkey115
- lang/spidermonkey128
- lang/spidermonkey140
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- No options to configure
- Options name:
- devel_rust-cbindgen
- USES:
- cargo
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|