autocxx
autocxx copied to clipboard
Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers
`save-state` and `set-output` commands used in GitHub Actions are deprecated and [GitHub recommends using environment files](https://github.blog/changelog/2023-07-24-github-actions-update-on-save-state-and-set-output-commands/). This PR updates the usage of `::set-output` to `"$GITHUB_OUTPUT"` Instructions for envvar usage from...
**Describe the bug** There seems to be a limitation in autocxx when dealing with base classes that are templated. In the provided example, the base class S is a template,...
*I've Edited this description as more info on this bug has come to light* # Description of the Bug We've been using `autocxx` for a few months to generate Rust...
**Describe the bug** The build fails with the following: ``` cargo:warning=In file included from /Users/py/projects/paulyoung/autocxx-bug/main/target/debug/build/autocxx-bug-94a6f68b4aecae68/out/autocxx-build-dir/cxx/gen0.cxx:2: cargo:warning=/Users/py/projects/paulyoung/autocxx-bug/main/target/debug/build/autocxx-bug-94a6f68b4aecae68/out/autocxx-build-dir/include/autocxxgen_ffi.h:57:144: error: no matching function for call to 'operator new' cargo:warning=inline void MySubclassCpp_new_autocxx_autocxx_wrapper_0xc63676881d849a16(MySubclassCpp* autocxx_gen_this, rust::Box...
**Description** Eventough the docs imply that calling the assoicated new function of a generate_pod! type would create a POD rust type that is not the case and the only way...
**Describe the bug** Overloaded function renaming might cause conflicts **To Reproduce** See https://github.com/google/autocxx/pull/1317 I have a class: ```c++ class Image { public: static uint64_t byteSwap(uint64_t value, bool bSwap); static uint32_t...
**Describe the bug** I'm getting the error in the issue. **To Reproduce** ```rust use autocxx::prelude::*; use autocxx::subclass::*; include_cpp! { #include "gdal/gdal_priv.h" safety!(unsafe_ffi) generate!("GDALDataset") subclass!("GDALDataset", MyDataset) } use ffi::*; #[subclass] #[derive(Default)]...
I guess this isn't possible, given that they're explicitly ignored, but maybe I'm missing something.
**Describe the bug** I cannot seem to pass a UniquePtr to a c++ function call that requires std::unique_ptr. **To Reproduce** c++ code in a file called cppHeader.h. It just defines...
Parent issue: #628 Wanted to open this as a draft to get feedback before going any deeper. Using some ugly trait shenanigans to paper over `Rc` and `Arc`. Outstanding comments/questions/issues:...