cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

A project for generating C bindings from Rust code

Results 190 cbindgen issues
Sort by recently updated
recently updated
newest added

The oauth2 crate defines a type Error which is a generic enum. When flattening a certain variant of this enum for use in my libraries Error type, cbindgen panics ```...

Hello, I'm using `cbindgen` and `bindgen` to generate bindings for my project. The project is previously written in C, but now I want to introduce Rust to it. The problem...

It looks like `std::mem::offset_of` isn't supported yet `src/lib.rs`: ```rust struct A { a: bool, } pub const offset: usize = std::mem::offset_of!(A, a); ``` ```bash $ cbindgen --config template.toml --crate repro...

Helps for [the comment](https://github.com/mozilla/cbindgen/pull/912#issuecomment-2136195600) in #912. I had no extensive knowledge about the details of this project before, so I selected some of the PRs since Sep 14, 2023, based...

The current 0.26.0 release has a dependency to `atty`, which now has a Github security advisory. The dependency has been removed from the source tree, but it would be great...

From what I can tell from the docs, there is no way to add prefixes to function parameters. I think it would be useful to be able to do so....

I'm using cbindgen and its been working great, but I've run into an issue with two types: value_t and array_t, where a value could be an array and an array...

This PR adds support for other calling conventions as discussed in #55 and #718. It adds an ABI field (instead of just an extern field) to `Function`s and adds a...

I have several functions which are relevant to multiple objects, so I created some macros to reduce code duplication. When I generate the header file, the generated functions are excluded...

Adds a field `whitelist` to `ExportConfig`, allowing users to specify an exclusive list of items they wish to include in the generated header file. If the field is left empty...