| Port details on branch 2025Q1 |
- rust-cbindgen Generate C bindings from Rust code
- 0.29.2_5 devel
=5 0.29.2_5Version of this port present on the latest quarterly branch. - Maintainer: gecko@FreeBSD.org
 - Port Added: 2018-08-19 16:41:23
- Last Update: 2025-11-26 21:04:14
- Commit Hash: d044b57
- People watching this port, also watch:: libevent, woff2, autoconf, libXdamage, libexif
- 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 = 1764111515
SHA256 (rust/crates/cbindgen-0.29.2.crate) = befbfd072a8e81c02f8c507aefce431fe5e7d051f83d48a23ffc9b9fe5a11799
SIZE (rust/crates/cbindgen-0.29.2.crate) = 231617
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:

- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- rust>=1.91.0 : lang/rust
- Runtime dependencies:
-
- cargo : lang/rust
- This port is required by:
- for Build
-
- databases/mongodb70
- databases/mongodb80
- lang/spidermonkey102
- lang/spidermonkey115
- lang/spidermonkey128
- lang/spidermonkey140
- lang/spidermonkey78
-
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:
|