rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Automatically generates Rust FFI bindings to C (and some C++) libraries.

Results 460 rust-bindgen issues
Sort by recently updated
recently updated
newest added

```cmd nanodbc\nanodbc>set PATH="C:%HOMEPATH%\.cargo\bin" nanodbc\nanodbc>set CC="%LIBCLANG_PATH%\clang.exe" nanodbc\nanodbc>set CXX="%LIBCLANG_PATH%\clang++.exe" nanodbc\nanodbc>%CC% --version clang version 18.1.8 Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files\LLVM\bin nanodbc\nanodbc>bindgen nanodbc.h -o bindings.rs [omitted most output for brevity] pe...

This adds support for custom attributes: - `ParseCallbacks::add_attributes(&self, info: &AttributeInfo

When using bindgen for non-system libraries, it's common pattern to also have cc-rs for compilation that gets most flags (include headers, paths, ...) duplicated for bindgen (see mozjs or mozangle...

The first commit update to annotate-snippets 0.10.2, which is simple. The second commit update to annotate-snippets 0.11.4, which also do - re-export annotate-snippets::Level in diagnostics.rs - require title is always...

I know Edition 2024 is very experimental at the moment, so this is more of a heads-up than an actual issue. ### Description Rust has just implemented [RFC 3484](https://github.com/rust-lang/rfcs/blob/master/text/3484-unsafe-extern-blocks.md), requiring...

C-feature-request

I'm running into files created by bindgen for WinOS platforms that have mixed line endings (both CRLF and LF). For example, [bindings/i686-pc-windows-msvc.rs](https://github.com/DelSkayn/rquickjs/blob/e30556caf0cabc361e51aa52978c49433ffe1454/sys/src/bindings/i686-pc-windows-msvc.rs) is a mixed EOL file with `\r\n\n` ending...

Currently using the "wrap static fns" feature requires `--experimental` or the `experimental` cargo feature. I didn't see a tracking issue for stabilizing this feature to no longer require `experimental`, so...

### Input C/C++ Header The original header is from Julia 1.10. ```C++ _Atomic(int) a; ``` ### Bindgen Invocation The original build.rs is in https://github.com/Kriskras99/julia-rs/blob/master/julia-sys/build.rs ```Rust bindgen::Builder::default() .header("wrapper.h") .clang_arg(format!("-I{include_dir}")) .allowlist_recursively(false) .allowlist_item("_*[Jj][Ll].*")...