cxx icon indicating copy to clipboard operation
cxx copied to clipboard

Safe interop between Rust and C++

Results 267 cxx issues
Sort by recently updated
recently updated
newest added

Close: - #669 Solution: Add `doxygen` feature for `cxx-build`: Enabling this feature will write `///` comments instead of `//` into generated cpp files.

Some Rust keywords are valid identifiers in C++. Yet this fails: `demo/include/blobstore.h`: add ```cpp inline void move(uint32_t a) {} ``` `demo/src/main.rs`: add (in `extern C++` section): ```rust #[cxx_name = "move"]...

Hello, I'm currently making a program in rust that exposes a function to c++ using the cxx crate. here is the program : https://gist.github.com/rust-play/0997aff926802eb98998273330d48a43 but I'm not sure what to...

I got pretty far assuming that none of the generated C++ code depends on the symbols emitted by the procedural macro, before doing something with Box that requires it. Add...

Hello to everybody. Is it possible to fill an opaque struct, defined in Rust, from C++ part? Let's assume in `cxx::bridge` we declared the following: ``` extern "Rust" { type...

This is an attempt to address https://github.com/dtolnay/cxx/issues/870 and similar issues. I attempt to expose more information on the underlying rust error by including the the original error into the c++...

Thanks for this awesome project! I'd like to use it in a i686-pc-windows-msvc project that uses the `__stdcall` calling convention on the C++ side (instead of the default `__cdecl`). Unfortunately...

windows

In the [Async Functions](https://cxx.rs/async.html) chapter, the book shows how to call a C++ async function from Rust. Is there such a workaround in the opposite direction? I'd like my C++...

This adds a way to create SharedPtr's from C++ pointers created with `new` (or via `unique_ptr`s). I'm a new contributor here, let me know if I did this in a...

`cxx::bridge` appears to be using `Box` instead of a fully elaborated name when `Box` is used in a function declaration, which prevents it from being found. There doesn't appear to...