BSD Ports

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

SystemPortVersion
FreeBSDdevel/rust-cbindgen0.29.4_4,1
DragonFlydevel/rust-cbindgen0.28.0
MidnightBSDdevel/rust-cbindgen0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.29.4_3,10.29.4_4,1-0.28.0_20.29.4_4,1
FreeBSD:14:quarterly0.29.4_2,10.29.4_2,1n/a0.28.0_10.29.4_2,1
FreeBSD:15:latest0.29.4_4,10.29.4_4,1n/a0.28.0_20.28.0_2
FreeBSD:15:quarterly0.29.4_2,10.29.4_2,1n/an/an/a
FreeBSD:16:latest0.29.4_2,10.29.4_4,1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
rust/crates/cbindgen-0.29.4.crate2380172ecb53484c9c167ba674026b656d8a27d7657a58e6066aa902bfb1a4aa00ae20
rust/crates/anstream-0.6.19.crate28767301af1932e46185686725e0fad2f8f2aa7da69dd70bf6ecc44d6b703844a3933
rust/crates/anstyle-1.0.11.crate15880862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd
rust/crates/anstyle-parse-0.2.7.crate217074e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2
rust/crates/anstyle-query-1.1.3.crate101906c8bdeb6047d8983be085bab0ba1472e6dc604e7041dbf6fcd5e71523014fae9
rust/crates/anstyle-wincon-3.0.9.crate12561403f75924867bb1033c59fbf0797484329750cfbe3c4325cd33127941fabc882
rust/crates/autocfg-1.5.0.crate18729c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8
rust/crates/bitflags-2.9.1.crate479131b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967
rust/crates/cfg-if-1.0.1.crate86839555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268
rust/crates/clap-4.5.41.crate58298be92d32e80243a54711e5d7ce823c35c41c9d929dc4ab58e1276f625841aadf9
rust/crates/clap_builder-4.5.41.crate169633707eab41e9622f9139419d573eca0900137718000c517d47da73045f54331c3d
rust/crates/clap_lex-0.7.5.crate13469b94f61472cee1439c0b966b47e3aca9ae07e45d070759512cd390ea2bebc6675
rust/crates/colorchoice-1.0.4.crate8196b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75
rust/crates/dashmap-5.5.3.crate24061978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856
rust/crates/diff-0.1.13.crate4621656254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8
rust/crates/equivalent-1.0.2.crate7419877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f
rust/crates/errno-0.3.13.crate12449778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad
rust/crates/fastrand-2.3.0.crate1507637909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be
rust/crates/getrandom-0.3.3.crate4949326145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4
rust/crates/hashbrown-0.14.5.crate141498e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1
Master sites 1
  • CRATESIO/cbindgen/${DISTNAME}${CARGO_CRATE_EXT}

Commit history 5

DateCommitCreditsLog message
9c878207a1 Mikael Urankar lang/rust: Bump revisions after 1.99.0
PR: 299016
396c159306 Alan Somers */*: Fix many Rust ports to run without COMPAT11
RISCV does not include COMPAT11 by default. But Rust's libc bound the compat-11 symbols until version 0.2.176. Patch a great many Rust ports to use a newer version of libc, to eliminate the dependency on COMPAT11. Explicitly patching Cargo.lock isn't usually necessarily, since within the build jail cargo is forced to use whichever crates Makefile.crates installs there. Notes on specific ports: * textproc/bookokrat: Rework bookokrat's existing patch to be more robust. Also, report the issue upstream: https://github.com/bugzmanov/bookokrat/issues/182 * security/sequoia-chameleon-gnupg security/sequoia-sq "cargo update -p libc" insisted on updating some other crates, too. * devel/cargo-generate finance/tickrs net-im/gurk-rs net-p2p/oura textproc/mdbook-linkcheck www/lychee …
162d8b0284 Jan Beich all: unbreak fetch after bc18f00c490c
fetch: https://static.crates.io/crates/cargo-c/0.10.25+cargo-0.99.0?dummy=/rust/crates/cargo-c-0.10.25+cargo-0.99.0.crate: Forbidden fetch: https://static.crates.io/crates/desed/1.2.2?dummy=/rust/crates/desed-1.2.2.crate: Forbidden fetch: https://static.crates.io/crates/fsx/0.3.2?dummy=/rust/crates/fsx-0.3.2.crate: Forbidden fetch: https://static.crates.io/crates/gbump/1.3.0?dummy=/rust/crates/gbump-1.3.0.crate: Forbidden fetch: https://static.crates.io/crates/bindgen-cli/0.72.1?dummy=/rust/crates/bindgen-cli-0.72.1.crate: Forbidden fetch: https://static.crates.io/crates/cbindgen/0.29.4?dummy=/rust/crates/cbindgen-0.29.4.crate: Forbidden fetch: https://static.crates.io/crates/doh-proxy/0.9.16?dummy=/rust/crates/doh-proxy-0.9.16.crate: Forbidden …
7316461925 Mikael Urankar lang/rust: Bump revisions after 1.98.1
PR: 298139
9c892d2601 Mikael Urankar lang/rust: Bump revisions after 1.97.1
PR: 296645