autocxx
autocxx copied to clipboard
Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers
I'm not sure what's different about the GitHub Actions environment where CI runs, but on my computer with glibc 2.41 and gcc 15.1.1, these tests fail because `uint32_t` isn't defined.
When we generate a non-wrapped function or method binding that takes or returns an abstract (i.e. pure virtual) type not referenced elsewhere, we get an erroneous "unused import" warning for...
Is there a way to control what methods and constructors are generated for a given class? I cannot build a set of bindings I'm working on because they have a...
For example, `std::function` should compile into `fn(usize) -> usize`
Implements support for issue #1421 by introducing a new macro: ``` enum_style!(ENUM_TYPE, "Enum1", "Enum2", …) ``` This overrides the default enum‐generation style (Rust enum, newtype, bitflags, etc.) on a per-enum...
**Describe the bug** When generating binding for [mfem](https://mfem.org/), I get the error ``` error[E0412]: cannot find type `_CharT` in this scope --> /home/trch/software/Rust/Scientific/mfem/target/debug/build/mfem-sys-3857909d484caabf/out/autocxx-build-dir/rs/autocxx-ffi-default-gen.rs:1:1777442 | 1 | ...:: basic_ostream < _CharT...
**Describe the bug** On Windows: trying to use existing C++ library built with MSVC2019 in rust application. If the library is built in debug mode, I get compile error: `error...
Although bindgen has [supported bitfields](https://rust-lang.github.io/rust-bindgen/using-bitfields.html) for a long time, autocxx [currently forbids them](https://github.com/google/autocxx/pull/1313) in POD types (issue #1303). The main obstacle to support is the way bindgen represents bitfields, using...
See individual commit messages for details. If you'd like each commit in a separate PR I can do that, but I figure merging this without squashing is easier given how...
First off, thank you for the excellent tooling you provide! I really appreciate `autocxx`, and it made it much easier to release [torrancew/xapian-rs](https://github.com/torrancew/xapian-rs). In the process of writing the bindings,...